chore: move migrations to rust

also adds some basic test seed data
This commit is contained in:
alyssa 2025-07-24 01:36:04 +00:00
parent 277bfebb33
commit 47c5990218
66 changed files with 173 additions and 10 deletions

View file

@ -1,18 +0,0 @@
-- schema version 18: 2021-09-26 --
-- Add UUIDs for APIs
create extension if not exists pgcrypto;
alter table systems add column uuid uuid default gen_random_uuid();
create index systems_uuid_idx on systems(uuid);
alter table members add column uuid uuid default gen_random_uuid();
create index members_uuid_idx on members(uuid);
alter table switches add column uuid uuid default gen_random_uuid();
create index switches_uuid_idx on switches(uuid);
alter table groups add column uuid uuid default gen_random_uuid();
create index groups_uuid_idx on groups(uuid);
update info set schema_version = 18;