Mass cleanup of bad postgres upgrade scripts

This commit is contained in:
patrickslee
2005-08-15 22:30:47 +00:00
parent 0b7c884132
commit a3c092c96d
16 changed files with 194 additions and 6 deletions
+5
View File
@@ -47,6 +47,11 @@ function chat_upgrade($oldversion) {
table_column('chat_users', '', 'lang' , 'varchar', '10', '' , '' , 'not null', '');
}
if ($oldversion < 2005031001) { // Mass cleanup of bad upgrade scripts
modify_database('','ALTER TABLE prefix_chat_users ALTER course SET NOT NULL');
modify_database('','ALTER TABLE prefix_chat_users ALTER lang SET NOT NULL');
}
return true;
}