Skip to content

Commit

Permalink
fix: Unknown column 'is_active' (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rom1-B authored Oct 24, 2024
1 parent ad66a44 commit a537f07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions inc/tag.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,12 @@ public static function install(Migration $migration)
} else {
if (!$DB->fieldExists($table, 'type_menu')) {
$migration->addField($table, 'type_menu', "text");
$migration->migrationOneTable($table);
}

if (!$DB->fieldExists($table, 'is_active')) {
$migration->addField($table, 'is_active', "tinyint NOT NULL DEFAULT '1'");
$migration->migrationOneTable($table);
}

$migration->addKey($table, 'name');
Expand Down

0 comments on commit a537f07

Please sign in to comment.