Skip to content

Commit

Permalink
Merge pull request #761 from hashtopolis/bug_add_linecount
Browse files Browse the repository at this point in the history
lineCount column was not checked correctly when upgrading
  • Loading branch information
s3inlc authored Apr 20, 2022
2 parents d38eb01 + 90c3911 commit 645c03a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/install/updates/update_v0.12.x_v0.x.x.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@
}

if (!isset($PRESENT["v0.12.x_fileLineCount"])) {
Factory::getFileFactory()->getDB()->query("ALTER TABLE `File` ADD `lineCount` BIGINT NULL;");
if (!Util::databaseColumnExists("File", "lineCount")) {
Factory::getFileFactory()->getDB()->query("ALTER TABLE `File` ADD `lineCount` BIGINT NULL;");
}
$EXECUTED["v0.12.x_fileLineCount"] = true;
}

0 comments on commit 645c03a

Please sign in to comment.