add deprecated column for os_images

This commit is contained in:
forest 2020-05-19 22:55:23 -05:00
parent 7a478b7ab1
commit af16ef89d1
2 changed files with 11 additions and 2 deletions

View File

@ -0,0 +1,4 @@
DELETE FROM os_images WHERE id = 'openbsd67';
ALTER TABLE os_images
DROP COLUMN deprecated;

View File

@ -1,2 +1,7 @@
INSERT INTO os_images (id, template_image_file_name, description)
VALUES ('openbsd67', 'openbsd-6.7-x86_64.qcow2', 'OpenBSD 6.7');
ALTER TABLE os_images
ADD COLUMN deprecated BOOLEAN NOT NULL DEFAULT FALSE;
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
VALUES ('openbsd67', 'openbsd-6.7-x86_64.qcow2', 'OpenBSD 6.7', FALSE);
UPDATE os_images SET deprecated = TRUE WHERE id = 'openbsd66';