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