mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 07:14:39 +01:00
Fix table renaming
This commit is contained in:
parent
e85fef23a5
commit
22dd19a9de
@ -27,7 +27,10 @@ class RedisArray extends SqlArray
|
||||
protected function renameTable(string $from, string $to): \Generator
|
||||
{
|
||||
Logger::log("Renaming table {$from} to {$to}", Logger::WARNING);
|
||||
$request = $this->db->scan($this->itKey());
|
||||
$from = "va:$from";
|
||||
$to = "va:$to";
|
||||
|
||||
$request = $this->db->scan($from.'*');
|
||||
|
||||
$lenK = \strlen($from);
|
||||
while (yield $request->advance()) {
|
||||
|
Loading…
Reference in New Issue
Block a user