Update debian, alpine, add rockylinux #27

Merged
j3s merged 1 commit from j3s/update-distros into main 2021-12-14 23:59:39 +00:00
3 changed files with 22 additions and 1 deletions

View file

@ -50,7 +50,7 @@ def init_app(app, is_running_server):
hasSchemaVersionTable = False hasSchemaVersionTable = False
actionWasTaken = False actionWasTaken = False
schemaVersion = 0 schemaVersion = 0
desiredSchemaVersion = 21 desiredSchemaVersion = 22
cursor = connection.cursor() cursor = connection.cursor()

View file

@ -0,0 +1,8 @@
DELETE FROM os_images WHERE id = 'rockylinux';
DELETE FROM os_images WHERE id = 'alpine315';
DELETE FROM os_images WHERE id = 'debian11';
UPDATE os_images SET deprecated = FALSE WHERE id = 'debian10';
UPDATE os_images SET deprecated = FALSE WHERE id = 'alpine313';
UPDATE schemaversion SET version = 21;

View file

@ -0,0 +1,13 @@
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
VALUES ('rockylinux', 'rockylinux/8/root.img.qcow2', 'Rocky Linux 8', FALSE);
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
VALUES ('alpine315', 'alpine/3.15/root.img.qcow2', 'Alpine Linux 3.15', FALSE);
INSERT INTO os_images (id, template_image_file_name, description, deprecated)
VALUES ('debian11', 'debian/11/root.img.qcow2', 'Debian 11 (bullseye)', FALSE);
UPDATE os_images SET deprecated = TRUE WHERE id = 'debian10';
UPDATE os_images SET deprecated = TRUE WHERE id = 'alpine313';
UPDATE schemaversion SET version = 22;