Skip to content
Snippets Groups Projects
Commit cd7599a2 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Oubli suppression anciens indics

parent 35b3e788
No related branches found
No related tags found
No related merge requests found
...@@ -26,12 +26,6 @@ class v18Statuts extends AbstractMigration ...@@ -26,12 +26,6 @@ class v18Statuts extends AbstractMigration
$bdd = $this->manager->getBdd(); $bdd = $this->manager->getBdd();
$c = $this->manager->getOseAdmin()->getConsole(); $c = $this->manager->getOseAdmin()->getConsole();
try {
$this->preMigrationIndicateurs();
} catch (\Exception $e) {
$c->println($e->getMessage(), $c::COLOR_RED);
}
try { try {
$this->preMigrationStatuts(); $this->preMigrationStatuts();
} catch (\Exception $e) { } catch (\Exception $e) {
...@@ -124,27 +118,6 @@ class v18Statuts extends AbstractMigration ...@@ -124,27 +118,6 @@ class v18Statuts extends AbstractMigration
public function preMigrationIndicateurs()
{
$bdd = $this->manager->getBdd();
$c = $this->manager->getOseAdmin()->getConsole();
$c->begin('Préparation à la mise à jour des indicateurs');
if (!$this->manager->hasTable('TYPE_INDICATEUR')) {
$bdd->exec('ALTER TABLE INDICATEUR ADD (TYPE_INDICATEUR_ID NUMBER)');
$bdd->exec('CREATE TABLE TYPE_INDICATEUR (
ID NUMBER NOT NULL ENABLE,
LIBELLE VARCHAR2(60 CHAR) NOT NULL ENABLE,
ORDRE NUMBER DEFAULT 1 NOT NULL ENABLE
)');
$bdd->exec('INSERT INTO TYPE_INDICATEUR (ID, LIBELLE, ORDRE) VALUES (1,\'provisoire\', 1)');
$bdd->exec('UPDATE INDICATEUR SET TYPE_INDICATEUR_ID = 1');
}
$c->end('Préparation à la migration des indicateurs terminée');
}
public function preMigrationStatuts() public function preMigrationStatuts()
{ {
$bdd = $this->manager->getBdd(); $bdd = $this->manager->getBdd();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment