summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2003-05-24 14:31:36 +0000
committerDries Buytaert <dries@buytaert.net>2003-05-24 14:31:36 +0000
commit17e5b5c2d792fea207173c23bb76636297a21a03 (patch)
treeb12b53d2de57af9becd243d5329c6293fe9027f2
parentd592f76565373181afa15d99c976d168b93f6365 (diff)
downloadbrdo-17e5b5c2d792fea207173c23bb76636297a21a03.tar.gz
brdo-17e5b5c2d792fea207173c23bb76636297a21a03.tar.bz2
- Changed the type of the string fields in the locale table to BLOB.
This fixes bug #987. For PostgreSQL this is not required because its string comparisons are case-senitive. Not idea about MSSQL.
-rw-r--r--database/database.mysql18
-rw-r--r--update.php7
2 files changed, 15 insertions, 10 deletions
diff --git a/database/database.mysql b/database/database.mysql
index d3c133e21..b1e8c2a35 100644
--- a/database/database.mysql
+++ b/database/database.mysql
@@ -208,15 +208,15 @@ CREATE TABLE item (
CREATE TABLE locales (
lid int(10) NOT NULL auto_increment,
location varchar(128) NOT NULL default '',
- string text NOT NULL,
- da text NOT NULL,
- fi text NOT NULL,
- fr text NOT NULL,
- en text NOT NULL,
- es text NOT NULL,
- nl text NOT NULL,
- no text NOT NULL,
- sw text NOT NULL,
+ string blob NOT NULL,
+ da blob NOT NULL,
+ fi blob NOT NULL,
+ fr blob NOT NULL,
+ en blob NOT NULL,
+ es blob NOT NULL,
+ nl blob NOT NULL,
+ no blob NOT NULL,
+ sw blob NOT NULL,
PRIMARY KEY (lid)
) TYPE=MyISAM;
diff --git a/update.php b/update.php
index c949e2bbf..1a6efa586 100644
--- a/update.php
+++ b/update.php
@@ -65,7 +65,8 @@ $mysql_updates = array(
"2003-01-15" => "update_50",
"2003-04-19" => "update_51",
"2003-04-20" => "update_52",
- "2003-05-18" => "update_53"
+ "2003-05-18" => "update_53",
+ "2003-05-24" => "update_54"
);
// Update functions
@@ -709,6 +710,10 @@ function update_53() {
update_sql("CREATE INDEX book_parent ON book(parent);");
}
+function update_54() {
+ update_sql("ALTER TABLE locales CHANGE string string BLOB DEFAULT '' NOT NULL");
+}
+
function update_upgrade3() {
update_sql("INSERT INTO system VALUES ('archive.module','archive','module','',1)");
update_sql("INSERT INTO system VALUES ('block.module','block','module','',1)");