Skip to content

Commit

Permalink
Run every query (#189)
Browse files Browse the repository at this point in the history
Run queries, but count only those outside migration.
  • Loading branch information
ProgramComputer authored Jan 8, 2024
1 parent 08823c2 commit c9a8b80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inc/database_connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -1774,8 +1774,9 @@ function check_update_db($debug, $tbpref, $dbname): void
foreach ($queries as $query) {
$prefixed_query = prefixSQLQuery($query, $tbpref);
// Increment count for new tables only
$pre_row_count = runsql($prefixed_query, "");
if (!str_starts_with($query, "INSERT INTO _migrations")) {
$count += runsql($prefixed_query, "");
$count += $pre_row_count;
}
}

Expand Down

0 comments on commit c9a8b80

Please sign in to comment.