Location: PHPKode > projects > QuickSilver Forum > quicksilverforums-1.5.1/install/upgrade_7.php
<?php
/**
 * Quicksilver Forums
 * Copyright (c) 2005-2011 The Quicksilver Forums Development Team
 *  http://code.google.com/p/quicksilverforums/
 * 
 * Based on MercuryBoard
 * Copyright (c) 2001-2005 The Mercury Development Team
 *  http://www.mercuryboard.com/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 **/

if (!defined('QSF_INSTALLER')) {
	exit('Use index.php to upgrade.');
}

// Upgrade from 1.0.0 to 1.0.1

$need_templates = true;

$queries[] = "ALTER TABLE %psubscriptions ADD subscription_id int(12) unsigned NOT NULL auto_increment, ADD PRIMARY KEY (subscription_id)";
$queries[] = "ALTER TABLE %pusers ADD user_email_form tinyint(1) unsigned NOT NULL default '1' AFTER user_email_show";
?>
Return current item: QuickSilver Forum