diff --git a/system/migrations/22.php b/system/migrations/22.php index d09b6fce..e41c2941 100644 --- a/system/migrations/22.php +++ b/system/migrations/22.php @@ -23,4 +23,7 @@ $db->query(' ) ENGINE=MyISAM DEFAULT CHARSET=latin1;'); if(!$db->hasColumn('accounts', 'vote')) - $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