Fix migration

2022-03-24
Luca 3 years ago
parent c0f19eb2ff
commit 9d7fbd56fa

@ -22,7 +22,7 @@ class RenameGroups extends Migration
{ {
$connection = $this->schema->getConnection(); $connection = $this->schema->getConnection();
foreach (GROUPS as [$id, $old, $new]) { foreach (self::GROUPS as [$id, $old, $new]) {
$connection->update( $connection->update(
'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?', 'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?',
[$new, $id] [$new, $id]
@ -37,7 +37,7 @@ class RenameGroups extends Migration
{ {
$connection = $this->schema->getConnection(); $connection = $this->schema->getConnection();
foreach (GROUPS as [$id, $old, $new]) { foreach (self::GROUPS as [$id, $old, $new]) {
$connection->update( $connection->update(
'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?', 'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?',
[$old, $id] [$old, $id]

Loading…
Cancel
Save