[open-ils-commits] r19203 - in trunk/Open-ILS/src/sql/Pg: . upgrade (gmc)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Jan 19 10:34:58 EST 2011
Author: gmc
Date: 2011-01-19 10:34:56 -0500 (Wed, 19 Jan 2011)
New Revision: 19203
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0477.schema.remove-chdd-name-check.sql
Modified:
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
Log:
drop name check constraint on config.hard_due_due
See https://bugs.launchpad.net/evergreen/+bug/704951 for context
and possible future direction.
Signed-off-by: Galen Charlton <gmc at esilibrary.com>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-01-19 15:13:24 UTC (rev 19202)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2011-01-19 15:34:56 UTC (rev 19203)
@@ -70,7 +70,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0476'); -- dbs
+INSERT INTO config.upgrade_log (version) VALUES ('0477'); -- gmcharlt
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
@@ -344,7 +344,7 @@
CREATE TABLE config.hard_due_date (
id SERIAL PRIMARY KEY,
- name TEXT NOT NULL UNIQUE CHECK ( name ~ E'^\\w+$' ),
+ name TEXT NOT NULL UNIQUE,
ceiling_date TIMESTAMPTZ NOT NULL,
forceto BOOL NOT NULL,
owner INT NOT NULL -- REFERENCES actor.org_unit (id) DEFERRABLE INITIALLY DEFERRED,
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0477.schema.remove-chdd-name-check.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0477.schema.remove-chdd-name-check.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0477.schema.remove-chdd-name-check.sql 2011-01-19 15:34:56 UTC (rev 19203)
@@ -0,0 +1,7 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0477'); -- gmcharlt
+
+ALTER TABLE config.hard_due_date DROP CONSTRAINT hard_due_date_name_check;
+
+COMMIT;
More information about the open-ils-commits
mailing list