From ee0e0e6f1755e3d8ecafde2abea0f1af47ca6562 Mon Sep 17 00:00:00 2001 From: trifonnt Date: Mon, 17 Nov 2008 15:28:16 +0000 Subject: [PATCH] make combination of AD_Client_ID and Value unique in M_FreightCategory table. --- migration/352a-trunk/323_MFreightCategory_Unique.sql | 3 +++ .../352a-trunk/postgresql/323_MFreightCategory_Unique.sql | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 migration/352a-trunk/323_MFreightCategory_Unique.sql create mode 100644 migration/352a-trunk/postgresql/323_MFreightCategory_Unique.sql diff --git a/migration/352a-trunk/323_MFreightCategory_Unique.sql b/migration/352a-trunk/323_MFreightCategory_Unique.sql new file mode 100644 index 0000000000..5febe87036 --- /dev/null +++ b/migration/352a-trunk/323_MFreightCategory_Unique.sql @@ -0,0 +1,3 @@ +-- Make combination of AD_Client_ID and Value unique! +ALTER TABLE M_FreightCategory + ADD Constraint M_FreightCat_Value UNIQUE(AD_Client_ID, Value) \ No newline at end of file diff --git a/migration/352a-trunk/postgresql/323_MFreightCategory_Unique.sql b/migration/352a-trunk/postgresql/323_MFreightCategory_Unique.sql new file mode 100644 index 0000000000..5febe87036 --- /dev/null +++ b/migration/352a-trunk/postgresql/323_MFreightCategory_Unique.sql @@ -0,0 +1,3 @@ +-- Make combination of AD_Client_ID and Value unique! +ALTER TABLE M_FreightCategory + ADD Constraint M_FreightCat_Value UNIQUE(AD_Client_ID, Value) \ No newline at end of file