From 17b1f9a39114631b1824c6c62f5333749dc6be02 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 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