Skip to content

Commit

Permalink
Task techjoomla#199 feat: Save process optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush-maherwal committed Oct 4, 2019
1 parent 403c6f6 commit 80cabca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script.tjfields.php
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 80cabca

Please sign in to comment.