WIP: Bump schema to 26: Update Ubuntu and Rocky image versions #50
3 changed files with 13 additions and 1 deletions
|
@ -50,7 +50,7 @@ def init_app(app, is_running_server):
|
||||||
hasSchemaVersionTable = False
|
hasSchemaVersionTable = False
|
||||||
actionWasTaken = False
|
actionWasTaken = False
|
||||||
schemaVersion = 0
|
schemaVersion = 0
|
||||||
desiredSchemaVersion = 25
|
desiredSchemaVersion = 26
|
||||||
|
|
||||||
cursor = connection.cursor()
|
cursor = connection.cursor()
|
||||||
|
|
||||||
|
|
5
capsulflask/schema_migrations/26_down_os_updates.sql
Normal file
5
capsulflask/schema_migrations/26_down_os_updates.sql
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
|
||||||
|
DELETE FROM os_images WHERE id = 'rockylinux9';
|
||||||
|
DELETE FROM os_images WHERE id = 'ubuntu2404';
|
||||||
|
|
||||||
|
UPDATE schemaversion SET version = 25;
|
7
capsulflask/schema_migrations/26_up_os_updates.sql
Normal file
7
capsulflask/schema_migrations/26_up_os_updates.sql
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
|
||||||
|
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
|
||||||
|
VALUES ('rockylinux9', 'rocky/9/root.img.qcow2', 'Rocky Linux 9', FALSE);
|
||||||
|
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
|
||||||
|
VALUES ('ubuntu2204', 'ubuntu/22.04/root.img.qcow2', 'Ubuntu Linux 24.04', FALSE);
|
||||||
|
|
||||||
|
UPDATE schemaversion SET version = 26;
|
Loading…
Reference in a new issue