Database fix
This commit is contained in:
parent
ef526e6ff4
commit
af2d0f03c6
|
@ -19,21 +19,5 @@ CREATE TABLE IF NOT EXISTS "holiday"
|
||||||
|
|
||||||
primary key (id),
|
primary key (id),
|
||||||
constraint fk_country_id foreign key (country)
|
constraint fk_country_id foreign key (country)
|
||||||
references co
|
references country(iso_name) on delete cascade on update cascade
|
||||||
|
|
||||||
primary key (id)
|
|
||||||
);
|
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS "holiday"
|
|
||||||
(
|
|
||||||
id uuid,
|
|
||||||
country char(2) NOT NULL,
|
|
||||||
date date NOT NULL,
|
|
||||||
name varchar(64) NOT NULL,
|
|
||||||
description varchar(512),
|
|
||||||
is_state boolean NOT NULL,
|
|
||||||
is_religious boolean NOT NULL,
|
|
||||||
|
|
||||||
primary key (id),
|
|
||||||
constraint fk_country_id foreign key (cuntry(iso_name) on delete cascade on update cascade
|
|
||||||
);
|
);
|
Loading…
Reference in New Issue