aboutsummaryrefslogtreecommitdiff
path: root/db/upgrade.php
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2013-04-27 22:54:57 +0200
committerJean-Michel Vedrine <vedrine@vedrine.org>2013-04-27 22:54:57 +0200
commitfcf99b5bc918837d990e638b613da7357ad36532 (patch)
treec404c7cf45877cca8b0eef7a588dcf15afa8c1fa /db/upgrade.php
parent14da1f7131ac7ddd33c97b6e131beb2d13fb208e (diff)
Changes before release
Diffstat (limited to 'db/upgrade.php')
-rw-r--r--db/upgrade.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/db/upgrade.php b/db/upgrade.php
index ed8c060..6ddf1db 100644
--- a/db/upgrade.php
+++ b/db/upgrade.php
@@ -67,6 +67,16 @@ function xmldb_qtype_algebra_upgrade($oldversion=0) {
}
upgrade_plugin_savepoint(true, 2012061701, 'qtype', 'algebra');
}
- return true;
+
+ // Change table name one more time.
+ if ($oldversion < 2012061702) {
+ // Renaming old table.
+ $table = new xmldb_table('qtype_algebra');
+ if ($dbman->table_exists($table)) {
+ $dbman->rename_table($table, 'qtype_algebra_options');
+ }
+ upgrade_plugin_savepoint(true, 2012061702, 'qtype', 'algebra');
+ }
+ return true;
}