diff --git a/script.tjfields.php b/script.tjfields.php index 00530be9..16c86b1b 100755 --- a/script.tjfields.php +++ b/script.tjfields.php @@ -378,7 +378,7 @@ public function fix_db_on_update() if (!in_array('showonlist', $field_array)) { - $query = "ALTER TABLE `#__tjfields_fields` ADD COLUMN `showonlist` tinyint(1) NOT NULL"; + $query = "ALTER TABLE `#__tjfields_fields` ADD COLUMN `showonlist` tinyint(1) NOT NULL DEFAULT '0'"; $db->setQuery($query); if (!$db->execute())