From f675cd8fb83a417423aaedac78e38449bf4c6cd8 Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 22 Aug 2024 12:30:19 +0200 Subject: [PATCH] chg: [cleanup] removed older revision of upgrade script --- .../20240719000001_AdminPermissionSplit.php | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 config/Migrations/20240719000001_AdminPermissionSplit.php diff --git a/config/Migrations/20240719000001_AdminPermissionSplit.php b/config/Migrations/20240719000001_AdminPermissionSplit.php deleted file mode 100644 index 170a0c5..0000000 --- a/config/Migrations/20240719000001_AdminPermissionSplit.php +++ /dev/null @@ -1,30 +0,0 @@ -table('roles')->hasColumn('perm_community_admin'); - if (!$exists) { - $this->table('roles') - ->addColumn('perm_community_admin', 'boolean', [ - 'default' => 0, - 'null' => false, - ]) - ->addIndex('perm_community_admin') - ->update(); - } - $builder = $this->getQueryBuilder(); - $builder - ->update('roles') - ->set('perm_community_admin', true) - ->where(['perm_admin' => true]) - ->execute(); - } -}