1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 12:51:21 +01:00

More fixes

This commit is contained in:
Daniil Gentili 2023-05-26 21:48:30 +02:00
parent 948a697ff5
commit 5ade8cfc2a
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 3 additions and 3 deletions

View File

@ -164,12 +164,12 @@ abstract class DriverArray implements DbArray, IteratorAggregate
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);

View File

@ -111,7 +111,7 @@ class PostgresArrayBytea extends SqlArray
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\";
");
}
}