Commit 5434d19d authored by Richard Mansfield's avatar Richard Mansfield

Fix for earlier lastauthinstance upgrade which failed on mysql

parent 9919e37e
......@@ -1114,6 +1114,10 @@ function xmldb_core_upgrade($oldversion=0) {
}
if ($oldversion < 2009070900) {
if (is_mysql()) {
execute_sql("ALTER TABLE {usr} DROP FOREIGN KEY {usr_las_fk}");
execute_sql("ALTER TABLE {usr} DROP INDEX {usr_las_ix}");
}
$table = new XMLDBTable('usr');
$field = new XMLDBField('lastauthinstance');
drop_field($table, $field);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment