vm-selector/db/migrations/20260729180000_add_vms.sql
Antoine Pelletier 453c1241f7
Some checks failed
build / image (push) Failing after 16s
Ajoute l'image, le stack et la CI
2026-07-29 20:36:18 +02:00

13 lines
600 B
SQL

-- migrate:up
-- The VMs are configuration, not demo data: without these rows the page has
-- nothing to show. They belong to the schema so that a fresh deployment is
-- usable straight after `dbmate up`, with no manual seeding step.
--
-- `domain` must match the libvirt domain name exactly (`virsh list --all`).
INSERT INTO vms ("domain", "display_name", "icon", "position") VALUES
('win11', 'Windows 11', 'windows', 1),
('arch-hyprland', 'Arch Linux (Hyprland)', 'linux', 2)
ON CONFLICT ("domain") DO NOTHING;
-- migrate:down
DELETE FROM vms WHERE "domain" IN ('win11', 'arch-hyprland');