X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=config%2Fupdatedb.php;h=3012f2355c7cb42914a70f5c431df4daa6ff7c46;hb=d066c39bf19edb0da3f0ca8ed47c57090b4843f7;hp=2e9a4a24ea860acaeed01653c03b3555c8793ee7;hpb=7aff44b2a3193e43aedfd7bf7fc3801bcffcf3e0;p=diogenes.git diff --git a/config/updatedb.php b/config/updatedb.php index 2e9a4a2..3012f23 100755 --- a/config/updatedb.php +++ b/config/updatedb.php @@ -13,7 +13,7 @@ require_once("diogenes/diogenes.database-creator.inc.php"); class DiogenesDbInit extends DiogenesDatabaseCreator { /** database versions history */ - var $versions = array("0.9.9.3", "0.9.10", "0.9.12", "0.9.15", "0.9.16", "0.9.16+0.9.17pre15", "0.9.16+0.9.17pre19", "0.9.16+0.9.17pre21", "0.9.18+0.9.19pre2"); + var $versions = array("0.9.9.3", "0.9.10", "0.9.12", "0.9.15", "0.9.16", "0.9.16+0.9.17pre15", "0.9.16+0.9.17pre19", "0.9.16+0.9.17pre21"); /** * Upgrades the database from one version to the next @@ -38,7 +38,6 @@ class DiogenesDbInit extends DiogenesDatabaseCreator // upgrade master tables $this->info("* Upgrading master tables : diogenes_*"); $this->upgradeMaster($newversion); - exit(1); } @@ -214,15 +213,6 @@ class DiogenesDbInit extends DiogenesDatabaseCreator $this->dbh->query("INSERT INTO diogenes_logactions VALUES (16, 'page_plugins', 'the page plugins were modified');"); break; - case "0.9.18+0.9.19pre2": - $this->info(" - adding 'status' field to 'diogenes_plugin' table"); - $this->dbh->query("ALTER TABLE `diogenes_plugin` ADD `status` INT( 1 ) UNSIGNED NOT NULL default '0'"); - $this->dbh->query("update diogenes_plugin set status=0 where page=0"); - $this->dbh->query("update diogenes_plugin set status=1 where page!=0"); - $this->info(" - removing 'pos' field to 'diogenes_plugin' table"); - $this->dbh->query("ALTER TABLE `diogenes_plugin` DROP `pos`"); - break; - default: $this->info(" - no changes needed."); break;