upda/server/migrations_postgres/1_updates.up.sql
Varakh 570e454a95
All checks were successful
/ build (pull_request) Successful in 5m54s
feat(db): Drop support for SQLite support (breaking!)
- only Postgres is supported from now on to reduce maintenance
 - enables building main upda server application for all platforms
 - instead of using ORM auto migrate for database schema creation, switch to proper migration framework utilizing flexible steps and plain sql files
 - library updates
2024-12-21 15:02:24 +01:00

17 lines
598 B
SQL

create table if not exists updates
(
id uuid not null
constraint uni_updates_id primary key,
application text not null,
provider text not null,
host text not null,
version text not null,
state text not null,
metadata jsonb,
created_at timestamp with time zone not null,
updated_at timestamp with time zone not null
);
create unique index idx_a_p_h on updates (application, provider, host);
commit;