mirror of https://github.com/docker/docs.git
update notarymysql/migrate.go to add role to timestamp_keys and update indexes
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
This commit is contained in:
parent
2dc2fe6738
commit
c0a84c2508
|
@ -14,3 +14,7 @@ ADD COLUMN `deleted_at` timestamp NULL DEFAULT NULL AFTER `updated_at`,
|
|||
DROP PRIMARY KEY,
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD UNIQUE (`gun`);
|
||||
|
||||
ALTER TABLE `timestamp_keys` ADD COLUMN `role` VARCHAR(255) NOT NULL, DROP KEY `gun`, ADD UNIQUE KEY `gun_role` (`gun`, `role`);
|
||||
|
||||
UPDATE `timestamp_keys` SET `role`="timestamp";
|
||||
|
|
Loading…
Reference in New Issue