From af2d0f03c62fa9fe88b7928be3e1bbfeb2373293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borna=20Rajkovi=C4=87?= Date: Sun, 19 Nov 2023 11:52:31 +0100 Subject: [PATCH] Database fix --- db/prod/v1_0.sql | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/db/prod/v1_0.sql b/db/prod/v1_0.sql index 4d917ab..9635ec9 100644 --- a/db/prod/v1_0.sql +++ b/db/prod/v1_0.sql @@ -5,7 +5,7 @@ CREATE TABLE IF NOT EXISTS "country" name varchar(45) NOT NULL, primary key (id) - ); +); CREATE TABLE IF NOT EXISTS "holiday" ( @@ -19,21 +19,5 @@ CREATE TABLE IF NOT EXISTS "holiday" primary key (id), constraint fk_country_id foreign key (country) - references co - - 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 -); \ No newline at end of file + references country(iso_name) on delete cascade on update cascade +);