From 9bbdb71ee4ccc1cf5433d8c21c8d96f668f81d2b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 6 Aug 2004 20:15:32 +0000 Subject: - Patch #9330: ucfirst() gives problem when used with multibyte charset. Replaced the use of ucfirst() with a CSS-based solution. --- database/database.pgsql | 2 +- database/updates.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'database') diff --git a/database/database.pgsql b/database/database.pgsql index d59fa6e6b..289a2e275 100644 --- a/database/database.pgsql +++ b/database/database.pgsql @@ -354,7 +354,7 @@ CREATE TABLE node_access ( grant_update smallint NOT NULL default '0', grant_delete smallint NOT NULL default '0', PRIMARY KEY (nid,gid,realm) -); +); -- diff --git a/database/updates.inc b/database/updates.inc index 21010b747..3d7f408e9 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -1113,7 +1113,7 @@ function update_88() { $ret[] = update_sql("ALTER TABLE {menu} DROP status"); $ret[] = update_sql("ALTER TABLE {menu} DROP visibility"); $ret[] = update_sql("ALTER TABLE {menu} ADD type INT(2) UNSIGNED DEFAULT '0' NOT NULL"); - } + } else { $ret[] = update_sql("ALTER TABLE {menu} ADD type smallint"); $ret[] = update_sql("ALTER TABLE {menu} ALTER COLUMN type SET DEFAULT '0'"); @@ -1126,7 +1126,7 @@ function update_88() { function update_89() { $ret = array(); - + if ($GLOBALS['db_type'] == 'mysql') { $ret[] = update_sql("ALTER TABLE {node} CHANGE static sticky INT(2) DEFAULT '0' NOT NULL"); } -- cgit v1.2.3