25 lines
549 B
MySQL
25 lines
549 B
MySQL
|
-- 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.
|