[ Index ] |
PHP Cross Reference of MyBB |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * MyBB 1.6 4 * Copyright 2010 MyBB Group, All Rights Reserved 5 * 6 * Website: http://mybb.com 7 * License: http://mybb.com/about/license 8 * 9 * $Id$ 10 */ 11 12 /** 13 * Upgrade Script: 1.2.2 14 */ 15 16 17 $upgrade_detail = array( 18 "revert_all_templates" => 0, 19 "revert_all_themes" => 0, 20 "revert_all_settings" => 0, 21 "requires_deactivated_plugins" => 0, 22 ); 23 24 @set_time_limit(0); 25 26 function upgrade8_dbchanges() 27 { 28 global $db, $output, $mybb; 29 30 $output->print_header("Performing Queries"); 31 32 echo "<p>Performing necessary upgrade queries..</p>"; 33 34 if($db->field_exists('oldadditionalgroups', "banned")) 35 { 36 $db->write_query("ALTER TABLE ".TABLE_PREFIX."banned DROP oldadditionalgroups;"); 37 } 38 $db->write_query("ALTER TABLE ".TABLE_PREFIX."banned ADD oldadditionalgroups TEXT NOT NULL AFTER oldgroup"); 39 40 41 if($db->field_exists('olddisplaygroup', "banned")) 42 { 43 $db->write_query("ALTER TABLE ".TABLE_PREFIX."banned DROP olddisplaygroup;"); 44 } 45 $db->write_query("ALTER TABLE ".TABLE_PREFIX."banned ADD olddisplaygroup int NOT NULL default '0' AFTER oldadditionalgroups"); 46 47 $contents .= "Click next to continue with the upgrade process.</p>"; 48 $output->print_contents($contents); 49 $output->print_footer("8_done"); 50 } 51 52 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue Oct 8 19:19:50 2013 | Cross-referenced by PHPXref 0.7.1 |