Changeset 1801
- Timestamp:
- 06/06/2011 09:57:12 PM (2 years ago)
- Files:
-
- 1 modified
-
trunk/setup/install.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/setup/install.php
r1800 r1801 441 441 case "1.1.6.6": 442 442 case "1.1.6.7": 443 print("<strong>1.1.6.7 to 1.2 changes:</strong><br />\n"); 443 444 test("Adding theme field to user preference table...", 444 445 @mysql_query("ALTER TABLE ".$config['table_prefix']."users ADD … … 454 455 update_default_page('FormattingRules', $dblink, $config, $lang_defaults_path, $lang_defaults_fallback_path, $upgrade_note); 455 456 case "1.2": 457 print("<strong>1.2 to 1.3.1 changes:</strong><br />\n"); 456 458 test(sprintf(ADDING_CONFIG_ENTRY, 'enable_user_host_lookup' ), 1); 457 459 $config['enable_user_host_lookup'] = '1'; … … 461 463 'TableMarkupReference', 462 464 'WikkaConfig'), $dblink, $config, $lang_defaults_path, $lang_defaults_fallback_path, $upgrade_note); 463 case "1.3":464 case "1.3.1":465 465 // Dropping obsolete "handler" field from pages table, refs #452 466 466 test('Removing handler field from the pages table...', 467 @mysql_query("ALTER TABLE ".$config["table_prefix"]."pages DROP handler", $dblink), __('Already done? Hmm!'), 0);467 @mysql_query("ALTER TABLE ".$config["table_prefix"]."pages DROP handler", $dblink), __('Already done? OK!'), 0); 468 468 // Support for threaded comments 469 469 test("Adding fields to comments table to enable threading...", … … 480 480 @mysql_query("alter table ".$config['table_prefix']."acls add comment_post_acl text not null", $dblink), __('Already done? OK!'), 0); 481 481 test('Copying existing comment_acls to new fields...', 482 @mysql_query("update ".$config['table_prefix']."acls as a inner join(select page_tag, comment_acl from ".$config['table_prefix']."acls) as b on a.page_tag = b.page_tag set a.comment_read_acl=b.comment_acl, a.comment_post_acl=b.comment_acl", $dblink), __(' Failed').'. ?', 1);482 @mysql_query("update ".$config['table_prefix']."acls as a inner join(select page_tag, comment_acl from ".$config['table_prefix']."acls) as b on a.page_tag = b.page_tag set a.comment_read_acl=b.comment_acl, a.comment_post_acl=b.comment_acl", $dblink), __('Already done? OK!'), 0); 483 483 test('Drop old comment acl...', 484 @mysql_query("alter table ".$config['table_prefix']."acls drop comment_acl", $dblink), __(' Failed').'. ?', 1);484 @mysql_query("alter table ".$config['table_prefix']."acls drop comment_acl", $dblink), __('Already done? OK!'), 0); 485 485 test(__('Creating index on owner column').'...', 486 486 @mysql_query('alter table '.$config['table_prefix'].'pages add index `idx_owner` (`owner`)', $dblink), __('Already done? OK!'), 0); 487 487 test(__('Altering referrers table structure').'...', 488 @mysql_query("ALTER TABLE ".$config['table_prefix']."referrers MODIFY referrer varchar(255) NOT NULL default ''", $dblink), "Failed. ?", 1);488 @mysql_query("ALTER TABLE ".$config['table_prefix']."referrers MODIFY referrer varchar(255) NOT NULL default ''", $dblink), __('Already done? OK!'), 0); 489 489 test(__('Altering referrer blacklist table structure').'...', 490 @mysql_query("ALTER TABLE ".$config['table_prefix']."referrer_blacklist MODIFY spammer varchar(255) NOT NULL default ''", $dblink), "Failed. ?", 1);490 @mysql_query("ALTER TABLE ".$config['table_prefix']."referrer_blacklist MODIFY spammer varchar(255) NOT NULL default ''", $dblink), __('Already done? OK!'), 0); 491 491 update_default_page(array( 492 492 'FormattingRules', … … 515 515 brute_copy("config/options_menu.user.inc", 516 516 "config/options_menu.user.inc.prev"); 517 test(__('Adding challenge field').'...', 518 @mysql_query("ALTER TABLE ".$config['table_prefix']."users ADD challenge VARCHAR( 8 ) NOT NULL default ''", $dblink), __('Already done? OK!'), 0); 519 case "trunk": 517 case "1.3": 518 case "1.3.1": 519 print("<strong>1.3.1 to 1.4 changes:</strong><br />\n"); 520 520 update_default_page(array( 521 521 'AdminBadWords', … … 586 586 @mysql_query("ALTER TABLE ".$config['table_prefix']."sessions CHANGE `userid` `userid` VARCHAR( 75 ) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL", $dblink); 587 587 // Adding challenge, refs #1023 588 test("Adding challenge field to users table to improve security...", 589 mysql_query("alter table ".$config["table_prefix"]."users add challenge varchar(8) COLLATE utf8_unicode_ci DEFAULT ''", $dblink), "Already done? OK!", 0); 588 test("Adding/updating challenge field to users table to improve security...", 589 @mysql_query("alter table ".$config["table_prefix"]."users ADD challenge varchar(8) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT ''", $dblink), __("Already done? OK!"), 0); 590 @mysql_query("alter table ".$config["table_prefix"]."users CHANGE `challenge` `challenge` varchar(8) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT ''", $dblink); 590 591 @mysql_query("UPDATE ".$config['table_prefix']."users SET challenge='' WHERE challenge='00000000'", $dblink); 592 case "1.4": 591 593 } 592 594