capsul-flask/capsulflask/schema_migrations/23_up_ephemeral_vms.sql

13 lines
208 B
SQL

ALTER TABLE vms ADD COLUMN shortterm BOOLEAN NULL;
UPDATE vms SET shortterm = TRUE WHERE shortterm is NULL;
ALTER TABLE vms ALTER COLUMN shortterm SET NOT NULL;
UPDATE schemaversion SET version = 23;