[open-ils-commits] r16049 - in trunk/Open-ILS/src/sql/Pg: . upgrade (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Mar 29 16:36:34 EDT 2010


Author: phasefx
Date: 2010-03-29 16:36:29 -0400 (Mon, 29 Mar 2010)
New Revision: 16049

Added:
   trunk/Open-ILS/src/sql/Pg/upgrade/0222.data.acq.patron_requests.sql
Removed:
   trunk/Open-ILS/src/sql/Pg/upgrade/test.data.acq.patron_requests.sql
Modified:
   trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
Log:
picking an upgrade version number

Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-03-29 20:36:27 UTC (rev 16048)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-03-29 20:36:29 UTC (rev 16049)
@@ -60,7 +60,7 @@
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0221'); -- senator
+INSERT INTO config.upgrade_log (version) VALUES ('0222'); -- phasefx
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,

Copied: trunk/Open-ILS/src/sql/Pg/upgrade/0222.data.acq.patron_requests.sql (from rev 16048, trunk/Open-ILS/src/sql/Pg/upgrade/test.data.acq.patron_requests.sql)
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0222.data.acq.patron_requests.sql	                        (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0222.data.acq.patron_requests.sql	2010-03-29 20:36:29 UTC (rev 16049)
@@ -0,0 +1,111 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('test'); -- phasefx
+
+INSERT INTO action_trigger.hook (key,core_type,description,passive) VALUES (
+        'aur.created',
+        'aur',
+        oils_i18n_gettext(
+            'aur.created',
+            'A patron has made an acquisitions request.',
+            'ath',
+            'description'
+        ),
+        TRUE
+    ), (
+        'aur.rejected',
+        'aur',
+        oils_i18n_gettext(
+            'aur.rejected',
+            'A patron acquisition request has been rejected.',
+            'ath',
+            'description'
+        ),
+        TRUE
+    )
+;
+
+INSERT INTO action_trigger.event_definition (
+        id,
+        active,
+        owner,
+        name,
+        hook,
+        validator,
+        reactor,
+        template
+    ) VALUES (
+        18,
+        FALSE,
+        1,
+        'Email Notice: Acquisition Request created.',
+        'aur.created',
+        'NOOP_True',
+        'SendEmail',
+$$
+[%- USE date -%]
+[%- SET user = target.usr -%]
+[%- SET title = target.title -%]
+[%- SET author = target.author -%]
+[%- SET isxn = target.isxn -%]
+[%- SET publisher = target.publisher -%]
+[%- SET pubdate = target.pubdate -%]
+
+To: [%- params.recipient_email || user.email %]
+From: [%- params.sender_email || default_sender %]
+Subject: Acquisition Request Notification
+
+Dear [% user.family_name %], [% user.first_given_name %]
+Our records indicate that you have made the following acquisition request:
+
+Title: [% title %]
+[% IF author %]Author: [% author %][% END %]
+[% IF edition %]Edition: [% edition %][% END %]
+[% IF isbn %]ISXN: [% isxn %][% END %]
+[% IF publisher %]Publisher: [% publisher %][% END %]
+[% IF pubdate %]Publication Date: [% pubdate %][% END %]
+$$
+    ), (
+        19,
+        FALSE,
+        1,
+        'Email Notice: Acquisition Request Rejected.',
+        'aur.rejected',
+        'NOOP_True',
+        'SendEmail',
+$$
+[%- USE date -%]
+[%- SET user = target.usr -%]
+[%- SET title = target.title -%]
+[%- SET author = target.author -%]
+[%- SET isxn = target.isxn -%]
+[%- SET publisher = target.publisher -%]
+[%- SET pubdate = target.pubdate -%]
+[%- SET cancel_reason = target.cancel_reason.description -%]
+
+To: [%- params.recipient_email || user.email %]
+From: [%- params.sender_email || default_sender %]
+Subject: Acquisition Request Notification
+
+Dear [% user.family_name %], [% user.first_given_name %]
+Our records indicate the following acquisition request has been rejected for this reason: .
+
+Title: [% title %]
+[% IF author %]Author: [% author %][% END %]
+[% IF edition %]Edition: [% edition %][% END %]
+[% IF isbn %]ISBN: [% isbn %][% END %]
+[% IF publisher %]Publisher: [% publisher %][% END %]
+[% IF pubdate %]Publication Date: [% pubdate %][% END %]
+$$
+    );
+
+INSERT INTO action_trigger.environment (
+        event_def,
+        path
+    ) VALUES 
+        ( 18, 'usr' ),
+        ( 19, 'usr' )
+    ;
+
+COMMIT;
+

Deleted: trunk/Open-ILS/src/sql/Pg/upgrade/test.data.acq.patron_requests.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/test.data.acq.patron_requests.sql	2010-03-29 20:36:27 UTC (rev 16048)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/test.data.acq.patron_requests.sql	2010-03-29 20:36:29 UTC (rev 16049)
@@ -1,111 +0,0 @@
-BEGIN;
-
-INSERT INTO config.upgrade_log (version) VALUES ('test'); -- phasefx
-
-INSERT INTO action_trigger.hook (key,core_type,description,passive) VALUES (
-        'aur.created',
-        'aur',
-        oils_i18n_gettext(
-            'aur.created',
-            'A patron has made an acquisitions request.',
-            'ath',
-            'description'
-        ),
-        TRUE
-    ), (
-        'aur.rejected',
-        'aur',
-        oils_i18n_gettext(
-            'aur.rejected',
-            'A patron acquisition request has been rejected.',
-            'ath',
-            'description'
-        ),
-        TRUE
-    )
-;
-
-INSERT INTO action_trigger.event_definition (
-        id,
-        active,
-        owner,
-        name,
-        hook,
-        validator,
-        reactor,
-        template
-    ) VALUES (
-        18,
-        FALSE,
-        1,
-        'Email Notice: Acquisition Request created.',
-        'aur.created',
-        'NOOP_True',
-        'SendEmail',
-$$
-[%- USE date -%]
-[%- SET user = target.usr -%]
-[%- SET title = target.title -%]
-[%- SET author = target.author -%]
-[%- SET isxn = target.isxn -%]
-[%- SET publisher = target.publisher -%]
-[%- SET pubdate = target.pubdate -%]
-
-To: [%- params.recipient_email || user.email %]
-From: [%- params.sender_email || default_sender %]
-Subject: Acquisition Request Notification
-
-Dear [% user.family_name %], [% user.first_given_name %]
-Our records indicate that you have made the following acquisition request:
-
-Title: [% title %]
-[% IF author %]Author: [% author %][% END %]
-[% IF edition %]Edition: [% edition %][% END %]
-[% IF isbn %]ISXN: [% isxn %][% END %]
-[% IF publisher %]Publisher: [% publisher %][% END %]
-[% IF pubdate %]Publication Date: [% pubdate %][% END %]
-$$
-    ), (
-        19,
-        FALSE,
-        1,
-        'Email Notice: Acquisition Request Rejected.',
-        'aur.rejected',
-        'NOOP_True',
-        'SendEmail',
-$$
-[%- USE date -%]
-[%- SET user = target.usr -%]
-[%- SET title = target.title -%]
-[%- SET author = target.author -%]
-[%- SET isxn = target.isxn -%]
-[%- SET publisher = target.publisher -%]
-[%- SET pubdate = target.pubdate -%]
-[%- SET cancel_reason = target.cancel_reason.description -%]
-
-To: [%- params.recipient_email || user.email %]
-From: [%- params.sender_email || default_sender %]
-Subject: Acquisition Request Notification
-
-Dear [% user.family_name %], [% user.first_given_name %]
-Our records indicate the following acquisition request has been rejected for this reason: .
-
-Title: [% title %]
-[% IF author %]Author: [% author %][% END %]
-[% IF edition %]Edition: [% edition %][% END %]
-[% IF isbn %]ISBN: [% isbn %][% END %]
-[% IF publisher %]Publisher: [% publisher %][% END %]
-[% IF pubdate %]Publication Date: [% pubdate %][% END %]
-$$
-    );
-
-INSERT INTO action_trigger.environment (
-        event_def,
-        path
-    ) VALUES 
-        ( 18, 'usr' ),
-        ( 19, 'usr' )
-    ;
-
-COMMIT;
-



More information about the open-ils-commits mailing list