Skip to content
Snippets Groups Projects
Commit 17e5b5c2 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- 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.
parent d592f765
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -208,15 +208,15 @@ CREATE TABLE item ( ...@@ -208,15 +208,15 @@ CREATE TABLE item (
CREATE TABLE locales ( CREATE TABLE locales (
lid int(10) NOT NULL auto_increment, lid int(10) NOT NULL auto_increment,
location varchar(128) NOT NULL default '', location varchar(128) NOT NULL default '',
string text NOT NULL, string blob NOT NULL,
da text NOT NULL, da blob NOT NULL,
fi text NOT NULL, fi blob NOT NULL,
fr text NOT NULL, fr blob NOT NULL,
en text NOT NULL, en blob NOT NULL,
es text NOT NULL, es blob NOT NULL,
nl text NOT NULL, nl blob NOT NULL,
no text NOT NULL, no blob NOT NULL,
sw text NOT NULL, sw blob NOT NULL,
PRIMARY KEY (lid) PRIMARY KEY (lid)
) TYPE=MyISAM; ) TYPE=MyISAM;
......
...@@ -65,7 +65,8 @@ ...@@ -65,7 +65,8 @@
"2003-01-15" => "update_50", "2003-01-15" => "update_50",
"2003-04-19" => "update_51", "2003-04-19" => "update_51",
"2003-04-20" => "update_52", "2003-04-20" => "update_52",
"2003-05-18" => "update_53" "2003-05-18" => "update_53",
"2003-05-24" => "update_54"
); );
// Update functions // Update functions
...@@ -709,6 +710,10 @@ function update_53() { ...@@ -709,6 +710,10 @@ function update_53() {
update_sql("CREATE INDEX book_parent ON book(parent);"); 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() { function update_upgrade3() {
update_sql("INSERT INTO system VALUES ('archive.module','archive','module','',1)"); update_sql("INSERT INTO system VALUES ('archive.module','archive','module','',1)");
update_sql("INSERT INTO system VALUES ('block.module','block','module','',1)"); update_sql("INSERT INTO system VALUES ('block.module','block','module','',1)");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment