From 80cabca10f61fa6e4a22816291647b2772941e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cankush=5Fm=E2=80=9D?= Date: Fri, 4 Oct 2019 17:22:23 +0530 Subject: [PATCH] Task #199 feat: Save process optimisation --- script.tjfields.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())