From 3d33d976c3048208bed7ea5bfd87c94e3dc975b1 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 18 Aug 2008 21:33:30 +0000 Subject: [PATCH] Create a Localization Category for config variables, and move the Province/State, Postal/Zip there Add new config variables for dateformat and timeformat --- db/db.code.version.txt | 2 +- db/db.update.110.sql | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 db/db.update.110.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index e2a9fee..bc6298e 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -109 +110 diff --git a/db/db.update.110.sql b/db/db.update.110.sql new file mode 100644 index 0000000..a9f4aff --- /dev/null +++ b/db/db.update.110.sql @@ -0,0 +1,7 @@ +UPDATE `config` SET category='Localization', ord='100' WHERE var='provincestate'; +UPDATE `config` SET category='Localization', ord='110' WHERE var='postalzip'; +INSERT INTO `config` ( `var` , `val` , `category` , `type` , `type_values` , `ord` , `description` , `year`) VALUES ( +'dateformat', 'Y-m-d', 'Localization', 'text', '', '200', 'Date format (formatting options)', '-1'); +INSERT INTO `config` ( `var` , `val` , `category` , `type` , `type_values` , `ord` , `description` , `year`) VALUES ( +'timeformat', 'H:i:s', 'Localization', 'text', '', '210', 'Time format (formatting options)', '-1'); +