wynn/migrations/003_wynn_items.sql
a 19799f2b0f
All checks were successful
commit-tag / commit-tag-image (map[context:./migrations file:./migrations/Dockerfile name:migrations]) (push) Successful in 18s
commit-tag / commit-tag-image (map[context:./ts file:./ts/Dockerfile name:ts]) (push) Successful in 53s
noot
2025-03-02 22:39:51 -06:00

25 lines
549 B
SQL

-- Write your migrate up statements here
create table wynn.items (
name text not null primary key,
display_name text not null,
type text not null,
hash text not null,
data jsonb not null
);
create schema if not exists meta;
create table meta.hashes (
key text not null primary key,
value text not null
);
---- create above / drop below ----
drop table if exists wynn.items;
drop schema if exists meta cascade;
-- Write your migrate down statements here. If this migration is irreversible
-- Then delete the separator line above.