Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed May 26, 2023
1 parent 948a697 commit 5ade8cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Db/DriverArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ private static function migrateDataToDb(self $new, DbArray|array|null $old): voi
if ($counter % 500 === 0 || $counter === $total) {
await($promises);
$promises = [];
Logger::log("Loading data to table {$new}: $counter/$total", Logger::WARNING);
Logger::log("Loading data to table {$newName}: $counter/$total", Logger::WARNING);
}
$new->clearCache();
}
if (self::getMigrationName($new, false) !== self::getMigrationName($old, false)) {
Logger::log("Dropping data from table {$old}", Logger::WARNING);
Logger::log("Dropping data from table {$oldName}", Logger::WARNING);
$old->clear();
}
Logger::log('Converting database done.', Logger::ERROR);
Expand Down
2 changes: 1 addition & 1 deletion src/Db/PostgresArrayBytea.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ protected function moveDataFromTableToTable(string $from, string $to): void
Logger::log("Moving data from {$from} to {$to}", Logger::WARNING);

$this->db->query(/** @lang PostgreSQL */ "
ALTER TABLE \"$from\" RENAME TO \"$to\";
ALTER TABLE \"bytea_$from\" RENAME TO \"bytea_$to\";
");
}
}

0 comments on commit 5ade8cf

Please sign in to comment.