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

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Apr 26 14:17:21 EDT 2010


Author: phasefx
Date: 2010-04-26 14:17:17 -0400 (Mon, 26 Apr 2010)
New Revision: 16308

Added:
   trunk/Open-ILS/src/sql/Pg/upgrade/0239.data.org-setting-format.date.time.sql
Modified:
   trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
   trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
Log:
org unit settings for formatting displayed date and time values

Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-04-26 18:14:31 UTC (rev 16307)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql	2010-04-26 18:17:17 UTC (rev 16308)
@@ -60,7 +60,7 @@
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0238'); -- senator
+INSERT INTO config.upgrade_log (version) VALUES ('0239'); -- phasefx
 
 CREATE TABLE config.bib_source (
 	id		SERIAL	PRIMARY KEY,

Modified: trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2010-04-26 18:14:31 UTC (rev 16307)
+++ trunk/Open-ILS/src/sql/Pg/950.data.seed-values.sql	2010-04-26 18:17:17 UTC (rev 16308)
@@ -1972,6 +1972,35 @@
         'bool'
 );
 
+-- 0239.data.org-setting-format.date.time.sql
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES (
+        'format.date',
+        oils_i18n_gettext(
+            'format.date',
+            'GUI: Format Dates with this pattern.', 
+            'coust', 
+            'label'),
+        oils_i18n_gettext(
+            'format.date',
+            'GUI: Format Dates with this pattern (examples: "yyyy-MM-dd" for "2010-04-26", "MMM d, yyyy" for "Apr 26, 2010")', 
+            'coust', 
+            'description'),
+        'string'
+), (
+        'format.time',
+        oils_i18n_gettext(
+            'format.time',
+            'GUI: Format Times with this pattern.', 
+            'coust', 
+            'label'),
+        oils_i18n_gettext(
+            'format.time',
+            'GUI: Format Times with this pattern (examples: "h:m:s.SSS a z" for "2:07:20.666 PM Eastern Daylight Time", "HH:mm" for "14:07")', 
+            'coust', 
+            'description'),
+        'string'
+);
+
 -- Org_unit_setting_type(s) that need an fm_class:
 INSERT into config.org_unit_setting_type
 ( name, label, description, datatype, fm_class ) VALUES

Added: trunk/Open-ILS/src/sql/Pg/upgrade/0239.data.org-setting-format.date.time.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0239.data.org-setting-format.date.time.sql	                        (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0239.data.org-setting-format.date.time.sql	2010-04-26 18:17:17 UTC (rev 16308)
@@ -0,0 +1,34 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0239'); -- phasefx
+
+INSERT INTO config.org_unit_setting_type ( name, label, description, datatype ) VALUES (
+        'format.date',
+        oils_i18n_gettext(
+            'format.date',
+            'GUI: Format Dates with this pattern.', 
+            'coust', 
+            'label'),
+        oils_i18n_gettext(
+            'format.date',
+            'GUI: Format Dates with this pattern (examples: "yyyy-MM-dd" for "2010-04-26", "MMM d, yyyy" for "Apr 26, 2010")', 
+            'coust', 
+            'description'),
+        'string'
+), (
+        'format.time',
+        oils_i18n_gettext(
+            'format.time',
+            'GUI: Format Times with this pattern.', 
+            'coust', 
+            'label'),
+        oils_i18n_gettext(
+            'format.time',
+            'GUI: Format Times with this pattern (examples: "h:m:s.SSS a z" for "2:07:20.666 PM Eastern Daylight Time", "HH:mm" for "14:07")', 
+            'coust', 
+            'description'),
+        'string'
+);
+
+
+COMMIT;



More information about the open-ils-commits mailing list