diff --git a/system/migrations/22.php b/system/migrations/22.php index fd166402..57f7bfb7 100644 --- a/system/migrations/22.php +++ b/system/migrations/22.php @@ -23,4 +23,7 @@ $db->query(' ) ENGINE=MyISAM DEFAULT CHARSET=latin1;'); if(!fieldExist('vote', 'accounts')) - $db->query('ALTER TABLE `accounts` ADD `vote` INT( 11 ) NOT NULL ;'); \ No newline at end of file + $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 ;'); +} \ No newline at end of file