|
|
|
@ -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]
|
|
|
|
|