add deprecated column for os_images
This commit is contained in:
parent
7a478b7ab1
commit
af16ef89d1
4
capsulflask/schema_migrations/03_down_openbsd67.sql
Normal file
4
capsulflask/schema_migrations/03_down_openbsd67.sql
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
DELETE FROM os_images WHERE id = 'openbsd67';
|
||||||
|
|
||||||
|
ALTER TABLE os_images
|
||||||
|
DROP COLUMN deprecated;
|
@ -1,2 +1,7 @@
|
|||||||
INSERT INTO os_images (id, template_image_file_name, description)
|
ALTER TABLE os_images
|
||||||
VALUES ('openbsd67', 'openbsd-6.7-x86_64.qcow2', 'OpenBSD 6.7');
|
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';
|
Loading…
Reference in New Issue
Block a user