[open-ils-commits] r14095 - trunk/Open-ILS/src/sql/Pg/upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Sep 22 15:24:13 EDT 2009
Author: scottmk
Date: 2009-09-22 15:24:08 -0400 (Tue, 22 Sep 2009)
New Revision: 14095
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0014.data.upgrade-versions-numeric-only.sql
Modified:
trunk/Open-ILS/src/sql/Pg/upgrade/0001.data.config.org_unit_setting_type.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0002.schema.hold-index-on-unfilled_hold_list.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0003.schema.hold-loop-counting.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0004.data.org-setting-precat-circ-lib.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0005.data.org-setting-max-claims-return-count.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0006.data.override-max-claims-returned-perm.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0007.data.org-setting-checkout-auto-renew-age.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0008.data.org-setting-lib-supports-behind-desk-holds.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0009.data.action-trigger-hold-cancel-hook.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0010.schema.asset-copy-dummy-isbn.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0011.data.org-setting-no-autoprint.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0012.schema.circ-parent-circ.sql
trunk/Open-ILS/src/sql/Pg/upgrade/0013.schema.circ-checkin-ws-and-scan-time.sql
Log:
Changing the rules for database upgrades: config.upgrade_log.version
will henceforth be all-numeric.
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0001.data.config.org_unit_setting_type.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0001.data.config.org_unit_setting_type.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0001.data.config.org_unit_setting_type.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -2,7 +2,7 @@
-- Org Unit Settings for configuring org unit weights and org unit max-loops for hold targeting
-INSERT INTO config.upgrade_log (version) VALUES ('0001.data.config.org_unit_setting_type.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0001');
INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
'circ.holds.org_unit_target_weight',
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0002.schema.hold-index-on-unfilled_hold_list.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0002.schema.hold-index-on-unfilled_hold_list.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0002.schema.hold-index-on-unfilled_hold_list.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,4 +1,4 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0002.schema.hold-index-on-unfilled_hold_list.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0002');
CREATE INDEX uhr_hold_idx ON action.unfulfilled_hold_list (hold);
COMMIT;
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0003.schema.hold-loop-counting.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0003.schema.hold-loop-counting.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0003.schema.hold-loop-counting.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0003.schema.hold-loop-counting.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0003');
CREATE OR REPLACE VIEW action.unfulfilled_hold_loops AS
SELECT u.hold,
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0004.data.org-setting-precat-circ-lib.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0004.data.org-setting-precat-circ-lib.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0004.data.org-setting-precat-circ-lib.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0004.data.org-setting-precat-circ-lib.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0004');
INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
'circ.pre_cat_copy_circ_lib',
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0005.data.org-setting-max-claims-return-count.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0005.data.org-setting-max-claims-return-count.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0005.data.org-setting-max-claims-return-count.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0005.data.org-setting-max-claims-return-count.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0005');
INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
'circ.max_patron_claim_return_count',
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0006.data.override-max-claims-returned-perm.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0006.data.override-max-claims-returned-perm.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0006.data.override-max-claims-returned-perm.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0006.data.override-max-claims-returned-perm.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0006');
INSERT INTO permission.perm_list (code, description) VALUES (
'SET_CIRC_CLAIMS_RETURNED.override',
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0007.data.org-setting-checkout-auto-renew-age.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0007.data.org-setting-checkout-auto-renew-age.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0007.data.org-setting-checkout-auto-renew-age.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0007.data.org-setting-checkout-auto-renew-age.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0007');
INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
'circ.checkout_auto_renew_age',
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0008.data.org-setting-lib-supports-behind-desk-holds.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0008.data.org-setting-lib-supports-behind-desk-holds.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0008.data.org-setting-lib-supports-behind-desk-holds.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0008.data.org-setting-lib-supports-behind-desk-holds.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0008');
INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
'circ.holds.behind_desk_pickup_supported',
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0009.data.action-trigger-hold-cancel-hook.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0009.data.action-trigger-hold-cancel-hook.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0009.data.action-trigger-hold-cancel-hook.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0009.data.action-trigger-hold-cancel-hook.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0009');
INSERT INTO action_trigger.hook (key,core_type,description) VALUES (
'hold_request.cancel.expire_no_target',
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0010.schema.asset-copy-dummy-isbn.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0010.schema.asset-copy-dummy-isbn.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0010.schema.asset-copy-dummy-isbn.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0010.schema.asset-copy-dummy-isbn.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0010');
ALTER TABLE asset.copy
ADD COLUMN dummy_isbn TEXT;
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0011.data.org-setting-no-autoprint.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0011.data.org-setting-no-autoprint.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0011.data.org-setting-no-autoprint.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0011.data.org-setting-no-autoprint.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0011');
INSERT INTO config.org_unit_setting_type (name, label, description, datatype) VALUES (
'circ.staff_client.do_not_auto_attempt_print',
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0012.schema.circ-parent-circ.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0012.schema.circ-parent-circ.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0012.schema.circ-parent-circ.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0012.schema.circ-parent-circ.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0012');
ALTER TABLE action.circulation
ADD COLUMN parent_circ BIGINT
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0013.schema.circ-checkin-ws-and-scan-time.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0013.schema.circ-checkin-ws-and-scan-time.sql 2009-09-22 18:02:33 UTC (rev 14094)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0013.schema.circ-checkin-ws-and-scan-time.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -1,6 +1,6 @@
BEGIN;
-INSERT INTO config.upgrade_log (version) VALUES ('0013.schema.circ-checkin-ws-and-scan-time.sql');
+INSERT INTO config.upgrade_log (version) VALUES ('0013');
ALTER TABLE action.circulation
ADD COLUMN checkin_workstation INT
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0014.data.upgrade-versions-numeric-only.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0014.data.upgrade-versions-numeric-only.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0014.data.upgrade-versions-numeric-only.sql 2009-09-22 19:24:08 UTC (rev 14095)
@@ -0,0 +1,22 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0014');
+
+-- Changing the rules retroactively:
+-- versions should be numeric only
+
+UPDATE config.upgrade_log set version = '0001' where version = '0001.data.config.org_unit_setting_type.sql';
+UPDATE config.upgrade_log set version = '0002' where version = '0002.schema.hold-index-on-unfilled_hold_list.sql';
+UPDATE config.upgrade_log set version = '0003' where version = '0003.schema.hold-loop-counting.sql';
+UPDATE config.upgrade_log set version = '0004' where version = '0004.data.org-setting-precat-circ-lib.sql';
+UPDATE config.upgrade_log set version = '0005' where version = '0005.data.org-setting-max-claims-return-count.sql';
+UPDATE config.upgrade_log set version = '0006' where version = '0006.data.override-max-claims-returned-perm.sql';
+UPDATE config.upgrade_log set version = '0007' where version = '0007.data.org-setting-checkout-auto-renew-age.sql';
+UPDATE config.upgrade_log set version = '0008' where version = '0008.data.org-setting-lib-supports-behind-desk-holds.sql';
+UPDATE config.upgrade_log set version = '0009' where version = '0009.data.action-trigger-hold-cancel-hook.sql';
+UPDATE config.upgrade_log set version = '0010' where version = '0010.schema.asset-copy-dummy-isbn.sql';
+UPDATE config.upgrade_log set version = '0011' where version = '0011.data.org-setting-no-autoprint.sql';
+UPDATE config.upgrade_log set version = '0012' where version = '0012.schema.circ-parent-circ.sql';
+UPDATE config.upgrade_log set version = '0013' where version = '0013.schema.circ-checkin-ws-and-scan-time.sql';
+
+COMMIT;
More information about the open-ils-commits
mailing list