From 9d7fbd56fa95f8ee1b1a62098d3df657f43fd70b Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 7 Apr 2022 18:45:23 +0200 Subject: [PATCH] Fix migration --- db/migrations/2022_04_07_000000_rename_groups.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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]