From 03de3a42f1a19d88c0771cfc85d4f20fa7b364af Mon Sep 17 00:00:00 2001 From: Fagorym Date: Sun, 19 May 2024 18:30:17 +0700 Subject: [PATCH] Drop not null fix tests --- src/main/resources/db/migration/V14_drop_rating_constaint.sql | 3 +++ .../resources/database/establishment/default_establishment.xml | 2 +- ...om_establishment.sql => V15__delete_from_establishment.sql} | 0 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 src/main/resources/db/migration/V14_drop_rating_constaint.sql rename src/test/resources/db/migration/{V14__delete_from_establishment.sql => V15__delete_from_establishment.sql} (100%) diff --git a/src/main/resources/db/migration/V14_drop_rating_constaint.sql b/src/main/resources/db/migration/V14_drop_rating_constaint.sql new file mode 100644 index 0000000..5efb1be --- /dev/null +++ b/src/main/resources/db/migration/V14_drop_rating_constaint.sql @@ -0,0 +1,3 @@ +ALTER TABLE establishments + ALTER COLUMN rating + DROP NOT NULL; diff --git a/src/test/resources/database/establishment/default_establishment.xml b/src/test/resources/database/establishment/default_establishment.xml index 0a9f92f..1a3a612 100644 --- a/src/test/resources/database/establishment/default_establishment.xml +++ b/src/test/resources/database/establishment/default_establishment.xml @@ -10,7 +10,7 @@ image="image" category="restaurant" owner_id="10" - cuisine_country="chinese" + cuisine_country="CHINESE" />