зеркало из https://github.com/mozilla/gecko-dev.git
Fixing SQL error (DROP COLUMN not REMOVE COLUMN)
This commit is contained in:
Родитель
4d40e8139f
Коммит
1bb8d54c2c
|
@ -374,13 +374,13 @@ sub setupInstall {
|
|||
# fields, such as changeID, which old format knew nothing
|
||||
# about.
|
||||
if ($helper->columnExists($app, $database, 'user', 'newFieldID')) {
|
||||
$database->execute('ALTER TABLE user REMOVE COLUMN newFieldID');
|
||||
$database->execute('ALTER TABLE user DROP COLUMN newFieldID');
|
||||
}
|
||||
if ($helper->columnExists($app, $database, 'user', 'newFieldValue')) {
|
||||
$database->execute('ALTER TABLE user REMOVE COLUMN newFieldValue');
|
||||
$database->execute('ALTER TABLE user DROP COLUMN newFieldValue');
|
||||
}
|
||||
if ($helper->columnExists($app, $database, 'user', 'newFieldKey')) {
|
||||
$database->execute('ALTER TABLE user REMOVE COLUMN newFieldKey');
|
||||
$database->execute('ALTER TABLE user DROP COLUMN newFieldKey');
|
||||
}
|
||||
}
|
||||
if (not $helper->tableExists($app, $database, 'userData')) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче