diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-05-10 20:48:32 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-05-10 20:48:32 +0000 |
commit | 228290553b3e94f151922db56900a026b4177594 (patch) | |
tree | 2905c90e4456852800d06fdb9f187c5fb5a0e249 /database | |
parent | 55dc257b77e4d5f7f4b121d0c427a28beedfe63d (diff) | |
download | brdo-228290553b3e94f151922db56900a026b4177594.tar.gz brdo-228290553b3e94f151922db56900a026b4177594.tar.bz2 |
- Patch #22531 by Morbus: the CHANGELOG for Drupal 4.5 claims that a URL alias of "rss.xml" for "node/feed" was added. This ONLY occurs in updates.inc however - if people grab a fresh 4.5 (or now, 4.6), they are never going to get this added alias. The attached patch adds this INSERT into the default database.* files, adds another update into the updates.inc (so that those who started with a fresh 4.5 or 4.6 will get it via update.php the next time around) and fixes some minor whitespace/style inconsistencies.
Diffstat (limited to 'database')
-rw-r--r-- | database/database.mysql | 6 | ||||
-rw-r--r-- | database/database.pgsql | 10 | ||||
-rw-r--r-- | database/updates.inc | 16 |
3 files changed, 21 insertions, 11 deletions
diff --git a/database/database.mysql b/database/database.mysql index cdf90487e..9c1efea8c 100644 --- a/database/database.mysql +++ b/database/database.mysql @@ -786,8 +786,8 @@ INSERT INTO system VALUES ('modules/system.module','system','module','',1,0,0); INSERT INTO system VALUES ('modules/taxonomy.module','taxonomy','module','',1,0,0); INSERT INTO system VALUES ('modules/user.module','user','module','',1,0,0); INSERT INTO system VALUES ('modules/watchdog.module','watchdog','module','',1,0,0); -INSERT INTO `system` VALUES ('themes/engines/phptemplate/phptemplate.engine', 'phptemplate', 'theme_engine', '', 1, 0, 0); -INSERT INTO `system` VALUES ('themes/bluemarine/page.tpl.php', 'bluemarine', 'theme', 'themes/engines/phptemplate/phptemplate.engine', 1, 0, 0); +INSERT INTO system VALUES ('themes/engines/phptemplate/phptemplate.engine', 'phptemplate', 'theme_engine', '', 1, 0, 0); +INSERT INTO system VALUES ('themes/bluemarine/page.tpl.php', 'bluemarine', 'theme', 'themes/engines/phptemplate/phptemplate.engine', 1, 0, 0); INSERT INTO users (uid, name, mail) VALUES ('0', '', ''); INSERT INTO users_roles (uid, rid) VALUES (0, 1); @@ -818,3 +818,5 @@ INSERT INTO filters VALUES (3,'filter',2,0); INSERT INTO variable (name,value) VALUES ('filter_html_1','i:1;'); INSERT INTO locales_meta (locale, name, enabled, isdefault) VALUES ('en', 'English', '1', '1'); + +INSERT INTO url_alias (src, dst) VALUES ('node/feed', 'rss.xml'); diff --git a/database/database.pgsql b/database/database.pgsql index bfd37ef6d..b0e36f019 100644 --- a/database/database.pgsql +++ b/database/database.pgsql @@ -783,8 +783,8 @@ INSERT INTO system VALUES ('modules/system.module','system','module','',1,0,0); INSERT INTO system VALUES ('modules/taxonomy.module','taxonomy','module','',1,0,0); INSERT INTO system VALUES ('modules/user.module','user','module','',1,0,0); INSERT INTO system VALUES ('modules/watchdog.module','watchdog','module','',1,0,0); -INSERT INTO `system` VALUES ('themes/engines/phptemplate/phptemplate.engine', 'phptemplate', 'theme_engine', '', 1, 0, 0); -INSERT INTO `system` VALUES ('themes/bluemarine/page.tpl.php', 'bluemarine', 'theme', 'themes/engines/phptemplate/phptemplate.engine', 1, 0, 0); +INSERT INTO system VALUES ('themes/engines/phptemplate/phptemplate.engine', 'phptemplate', 'theme_engine', '', 1, 0, 0); +INSERT INTO system VALUES ('themes/bluemarine/page.tpl.php', 'bluemarine', 'theme', 'themes/engines/phptemplate/phptemplate.engine', 1, 0, 0); INSERT INTO variable(name,value) VALUES('update_start', 's:10:"2005-03-21";'); INSERT INTO variable(name,value) VALUES('theme_default','s:10:"bluemarine";'); @@ -811,14 +811,15 @@ INSERT INTO filters VALUES (2,'filter',1,0); INSERT INTO filters VALUES (3,'filter',2,0); INSERT INTO variable (name,value) VALUES ('filter_html_1','i:1;'); -INSERT INTO locales_meta(locale, name, enabled, isdefault) VALUES('en', 'English', '1', '1'); +INSERT INTO locales_meta (locale, name, enabled, isdefault) VALUES ('en', 'English', '1', '1'); + +INSERT INTO url_alias (src, dst) VALUES ('node/feed', 'rss.xml'); --- --- Alter some sequences --- ALTER SEQUENCE menu_mid_seq RESTART 2; - --- --- Functions --- @@ -839,7 +840,6 @@ CREATE FUNCTION greatest(integer, integer, integer) RETURNS integer AS ' SELECT greatest($1, greatest($2, $3)); ' LANGUAGE 'sql'; - CREATE FUNCTION "rand"() RETURNS float AS ' BEGIN RETURN random(); diff --git a/database/updates.inc b/database/updates.inc index c14ca41e7..b39ca7c6c 100644 --- a/database/updates.inc +++ b/database/updates.inc @@ -113,7 +113,8 @@ $sql_updates = array( "2005-04-30" => "update_134", "2005-05-06" => "update_135", "2005-05-08" => "update_136", - "2005-05-09" => "update_137" + "2005-05-09" => "update_137", + "2005-05-10" => "update_138" ); function update_32() { @@ -2457,7 +2458,7 @@ function update_136() { return $ret; } - function update_137() { +function update_137() { $ret = array(); if ($GLOBALS['db_type'] == 'mysql') { @@ -2470,8 +2471,15 @@ function update_136() { $ret[] = update_sql("ALTER TABLE {locales_source} ALTER location SET DEFAULT ''"); $ret[] = update_sql("UPDATE {locales_source} SET location = location_old"); $ret[] = update_sql("ALTER TABLE {locales_source} DROP location_old"); - } - return $ret; + } + return $ret; +} + +function update_138() { + $ret = array(); + // duplicate of update_97 which never got into the default database.* files. + $ret[] = update_sql("INSERT INTO {url_alias} (src, dst) VALUES ('node/feed', 'rss.xml')"); + return $ret; } function update_sql($sql) { |