mirror of
https://github.com/SWG-Source/auth-site.git
synced 2026-07-13 22:01:16 -04:00
40 lines
865 B
PHP
40 lines
865 B
PHP
<?php
|
|
/**
|
|
* MyBB 1.8
|
|
* Copyright 2014 MyBB Group, All Rights Reserved
|
|
*
|
|
* Website: http://www.mybb.com
|
|
* License: http://www.mybb.com/about/license
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* Upgrade Script: 1.2.7, 1.2.8, or 1.2.9
|
|
*/
|
|
|
|
|
|
$upgrade_detail = array(
|
|
"revert_all_templates" => 0,
|
|
"revert_all_themes" => 0,
|
|
"revert_all_settings" => 0
|
|
);
|
|
|
|
@set_time_limit(0);
|
|
|
|
function upgrade10_dbchanges()
|
|
{
|
|
global $db, $output, $mybb;
|
|
|
|
$output->print_header("Performing Queries");
|
|
|
|
echo "<p>Performing necessary upgrade queries..</p>";
|
|
|
|
$db->write_query("UPDATE ".TABLE_PREFIX."templates SET version='0' WHERE version=''");
|
|
$db->write_query("ALTER TABLE ".TABLE_PREFIX."templates CHANGE version version int unsigned NOT NULL default '0'");
|
|
|
|
$contents .= "Click next to continue with the upgrade process.</p>";
|
|
$output->print_contents($contents);
|
|
$output->print_footer("10_done");
|
|
}
|
|
|