From 8058e3593dc5c1664bfeab3084decd1c13a7aeee Mon Sep 17 00:00:00 2001 From: Albert Bofill Date: Mon, 16 Apr 2018 15:56:36 +0200 Subject: [PATCH] Delete value_yesno check --- sql/utils/fk/gw_09_krn_ct.sql | 2 -- 1 file changed, 2 deletions(-) diff --git a/sql/utils/fk/gw_09_krn_ct.sql b/sql/utils/fk/gw_09_krn_ct.sql index 12232c894..8d4e0c09a 100644 --- a/sql/utils/fk/gw_09_krn_ct.sql +++ b/sql/utils/fk/gw_09_krn_ct.sql @@ -9,14 +9,12 @@ SET search_path = "SCHEMA_NAME", public, pg_catalog; --DROP CHECK ALTER TABLE "value_state" DROP CONSTRAINT IF EXISTS "value_state_check"; -ALTER TABLE "value_yesno" DROP CONSTRAINT IF EXISTS "value_yesno_check"; ALTER TABLE "man_addfields_cat_datatype" DROP CONSTRAINT IF EXISTS "man_addfields_cat_datatype_check"; ALTER TABLE "man_addfields_cat_widgettype" DROP CONSTRAINT IF EXISTS "man_addfields_cat_widgettype_check"; -- ADD CHECK ALTER TABLE "value_state" ADD CONSTRAINT value_state_check CHECK (id IN (0,1,2)); -ALTER TABLE "value_yesno" ADD CONSTRAINT value_yesno_check CHECK (id IN ('NO','YES')); /* -- PER REVISAR