From 613a7e782ec01827e48c79d9867bf1e4b71a00bb Mon Sep 17 00:00:00 2001 From: Richard Morales Date: Fri, 22 Mar 2013 16:29:24 -0500 Subject: [PATCH] IDEMPIERE-765 Client Name must be non unique / search key must be unique --- .../i1.0a-release/oracle/201303151137_IDEMPIERE-765.sql | 7 +++++++ .../postgresql/201303151137_IDEMPIERE-765.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 migration/i1.0a-release/oracle/201303151137_IDEMPIERE-765.sql create mode 100644 migration/i1.0a-release/postgresql/201303151137_IDEMPIERE-765.sql diff --git a/migration/i1.0a-release/oracle/201303151137_IDEMPIERE-765.sql b/migration/i1.0a-release/oracle/201303151137_IDEMPIERE-765.sql new file mode 100644 index 0000000000..f3b946ee69 --- /dev/null +++ b/migration/i1.0a-release/oracle/201303151137_IDEMPIERE-765.sql @@ -0,0 +1,7 @@ +-- IDEMPIERE-765 Client Name must be non unique / search key must be unique +DROP INDEX ad_client_name; + +CREATE UNIQUE INDEX ad_client_value + ON AD_Client (value); + +SELECT register_migration_script('201303151137_IDEMPIERE-765.sql') FROM dual; diff --git a/migration/i1.0a-release/postgresql/201303151137_IDEMPIERE-765.sql b/migration/i1.0a-release/postgresql/201303151137_IDEMPIERE-765.sql new file mode 100644 index 0000000000..f3b946ee69 --- /dev/null +++ b/migration/i1.0a-release/postgresql/201303151137_IDEMPIERE-765.sql @@ -0,0 +1,7 @@ +-- IDEMPIERE-765 Client Name must be non unique / search key must be unique +DROP INDEX ad_client_name; + +CREATE UNIQUE INDEX ad_client_value + ON AD_Client (value); + +SELECT register_migration_script('201303151137_IDEMPIERE-765.sql') FROM dual;