This commit is contained in:
Shish 2010-01-11 15:19:04 +00:00
parent 863932e4ec
commit ef43fc1e57

View File

@ -39,10 +39,11 @@ class Upgrade implements Extension {
// TODO:
// add column image->locked
if($config->get_int("db_version") < 8) {
// if this fails, don't try again
$config->set_int("db_version", 8);
$database->execute($database->engine->scoreql_to_sql(
"ALTER TABLE images ADD COLUMN locked SCORE_BOOL NOT NULL DEFAULT SCORE_BOOL_N"
));
$config->set_int("db_version", 8);
log_info("upgrade", "Database at version 8");
}
}