diff --git a/db/migrations/2022_04_07_000000_rename_groups.php b/db/migrations/2022_04_07_000000_rename_groups.php index 79d0bdb0..178b53ad 100644 --- a/db/migrations/2022_04_07_000000_rename_groups.php +++ b/db/migrations/2022_04_07_000000_rename_groups.php @@ -22,7 +22,7 @@ class RenameGroups extends Migration { $connection = $this->schema->getConnection(); - foreach (GROUPS as [$id, $old, $new]) { + foreach (self::GROUPS as [$id, $old, $new]) { $connection->update( 'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?', [$new, $id] @@ -37,7 +37,7 @@ class RenameGroups extends Migration { $connection = $this->schema->getConnection(); - foreach (GROUPS as [$id, $old, $new]) { + foreach (self::GROUPS as [$id, $old, $new]) { $connection->update( 'UPDATE `Groups` SET `Name` = ? WHERE `UID` = ?', [$old, $id]