diff --git a/capsulflask/db.py b/capsulflask/db.py index 0fbf1ce..2d973ce 100644 --- a/capsulflask/db.py +++ b/capsulflask/db.py @@ -50,7 +50,7 @@ def init_app(app, is_running_server): hasSchemaVersionTable = False actionWasTaken = False schemaVersion = 0 - desiredSchemaVersion = 25 + desiredSchemaVersion = 26 cursor = connection.cursor() diff --git a/capsulflask/schema_migrations/26_down_os_updates.sql b/capsulflask/schema_migrations/26_down_os_updates.sql new file mode 100644 index 0000000..390eb33 --- /dev/null +++ b/capsulflask/schema_migrations/26_down_os_updates.sql @@ -0,0 +1,5 @@ + +DELETE FROM os_images WHERE id = 'rockylinux9'; +DELETE FROM os_images WHERE id = 'ubuntu2404'; + +UPDATE schemaversion SET version = 25; diff --git a/capsulflask/schema_migrations/26_up_os_updates.sql b/capsulflask/schema_migrations/26_up_os_updates.sql new file mode 100644 index 0000000..a260dbc --- /dev/null +++ b/capsulflask/schema_migrations/26_up_os_updates.sql @@ -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;