Updated prod migrations
This commit is contained in:
parent
1d7be51f41
commit
36af703718
|
@ -1,10 +1,23 @@
|
||||||
|
CREATE TABLE IF NOT EXISTS "country"
|
||||||
|
(
|
||||||
|
id uuid,
|
||||||
|
iso_name char(2) UNIQUE NOT NULL,
|
||||||
|
name varchar(45) NOT NULL,
|
||||||
|
|
||||||
|
primary key (id)
|
||||||
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS "holiday"
|
CREATE TABLE IF NOT EXISTS "holiday"
|
||||||
(
|
(
|
||||||
id uuid,
|
id uuid,
|
||||||
country char(2),
|
country char(2) NOT NULL,
|
||||||
date date,
|
date date NOT NULL,
|
||||||
name varchar(64),
|
name varchar(64) NOT NULL,
|
||||||
description varchar(512),
|
description varchar(512),
|
||||||
is_state boolean,
|
is_state boolean NOT NULL,
|
||||||
is_religious boolean
|
is_religious boolean NOT NULL,
|
||||||
|
|
||||||
|
primary key (id),
|
||||||
|
constraint fk_country_id foreign key (country)
|
||||||
|
references country(iso_name) on delete cascade on update cascade
|
||||||
);
|
);
|
Loading…
Reference in New Issue