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