upgrde scrpt/release note for Usr Setting Defaults
authorJason Etheridge <jason@esilibrary.com>
Fri, 12 Jul 2013 16:21:47 +0000 (12:21 -0400)
committerJason Etheridge <jason@esilibrary.com>
Fri, 12 Jul 2013 16:26:46 +0000 (12:26 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/upgrade/0807.usr_setting_default.sql [new file with mode: 0644]
Open-ILS/src/sql/Pg/upgrade/XXXX.usr_setting_default.sql [deleted file]
docs/RELEASE_NOTES_NEXT/Client/user-setting-defaults.txt [new file with mode: 0644]

index 2d44af9..8eae7a7 100644 (file)
@@ -91,7 +91,7 @@ CREATE TRIGGER no_overlapping_deps
     BEFORE INSERT OR UPDATE ON config.db_patch_dependencies
     FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates');
 
-INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0806', :eg_version); -- berick/miker
+INSERT INTO config.upgrade_log (version, applied_to) VALUES ('0807', :eg_version); -- tsbere/phasefx
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
diff --git a/Open-ILS/src/sql/Pg/upgrade/0807.usr_setting_default.sql b/Open-ILS/src/sql/Pg/upgrade/0807.usr_setting_default.sql
new file mode 100644 (file)
index 0000000..c67fd0e
--- /dev/null
@@ -0,0 +1,9 @@
+BEGIN;
+
+-- check whether patch can be applied
+SELECT evergreen.upgrade_deps_block_check('0807', :eg_version);
+
+ALTER TABLE config.usr_setting_type
+    ADD COLUMN reg_default TEXT;
+
+COMMIT;
diff --git a/Open-ILS/src/sql/Pg/upgrade/XXXX.usr_setting_default.sql b/Open-ILS/src/sql/Pg/upgrade/XXXX.usr_setting_default.sql
deleted file mode 100644 (file)
index e55e1e2..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-ALTER TABLE config.usr_setting_type
-    ADD COLUMN reg_default TEXT;
diff --git a/docs/RELEASE_NOTES_NEXT/Client/user-setting-defaults.txt b/docs/RELEASE_NOTES_NEXT/Client/user-setting-defaults.txt
new file mode 100644 (file)
index 0000000..333018c
--- /dev/null
@@ -0,0 +1,4 @@
+User Setting Defaults
+^^^^^^^^^^^^^^^^^^^^^^^^
+
+For use during Patron Registration, we can now have supply default values for User Settings, under Admin -> Server Administration -> User Setting Types.