mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-22 15:51:15 +01:00
More fixes
This commit is contained in:
parent
948a697ff5
commit
5ade8cfc2a
@ -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);
|
||||
|
@ -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\";
|
||||
");
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user