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