mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
* fixed default accounts.vote value
This commit is contained in:
parent
f2c3e558cc
commit
808612cd10
@ -23,4 +23,7 @@ $db->query('
|
|||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1;');
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1;');
|
||||||
|
|
||||||
if(!$db->hasColumn('accounts', 'vote'))
|
if(!$db->hasColumn('accounts', 'vote'))
|
||||||
$db->query('ALTER TABLE `accounts` ADD `vote` INT( 11 ) NOT NULL ;');
|
$db->query('ALTER TABLE `accounts` ADD `vote` INT( 11 ) DEFAULT 0 NOT NULL ;');
|
||||||
|
else {
|
||||||
|
$db->query('ALTER TABLE `accounts` MODIFY `vote` INT( 11 ) DEFAULT 0 NOT NULL ;');
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user