Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Commit

Permalink
Delete value_yesno check
Browse files Browse the repository at this point in the history
  • Loading branch information
albertbofill committed Apr 16, 2018
1 parent 0973ef7 commit 8058e35
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sql/utils/fk/gw_09_krn_ct.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8058e35

Please # to comment.