зеркало из https://github.com/mozilla/fxa.git
Merge pull request #15506 from mozilla/FXA-7910-primary-keys
chore(db): add PK col to recoveryCodes, securityEvents, and totp
This commit is contained in:
Коммит
c54f2736eb
|
@ -0,0 +1,14 @@
|
|||
SET NAMES utf8mb4 COLLATE utf8mb4_bin;
|
||||
|
||||
CALL assertPatchLevel('139');
|
||||
|
||||
ALTER TABLE `recoveryCodes`
|
||||
ADD `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
|
||||
|
||||
ALTER TABLE `securityEvents`
|
||||
ADD `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
|
||||
|
||||
ALTER TABLE `totp`
|
||||
ADD `id` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY FIRST;
|
||||
|
||||
UPDATE dbMetadata SET value = '140' WHERE name = 'schema-patch-level';
|
|
@ -0,0 +1,5 @@
|
|||
-- ALTER TABLE `recoveryCodes` DROP COLUMN `id`;
|
||||
-- ALTER TABLE `securityEvents` DROP COLUMN `id`;
|
||||
-- ALTER TABLE `totp` DROP COLUMN `id`;
|
||||
|
||||
-- UPDATE dbMetadata SET value = '139' WHERE name = 'schema-patch-level';
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"level": 139
|
||||
"level": 140
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче