From 808612cd10a2e68bdc98b407e1e9b1ab514bab2e Mon Sep 17 00:00:00 2001 From: slawkens1 Date: Mon, 5 Feb 2018 08:19:46 +0100 Subject: [PATCH] * fixed default accounts.vote value --- system/migrations/22.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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