From 0c448bbfd79cc5d1dc8da7fdb1efcfc94daa8e92 Mon Sep 17 00:00:00 2001 From: GitHubJanHave <147205074+GitHubJanHave@users.noreply.github.com> Date: Wed, 22 Nov 2023 18:31:45 +0100 Subject: [PATCH] admin groups - migration fix (#1119) Co-authored-by: Jan Havelka --- .../{Version20231122111334.php => Version20231122111336.php} | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) rename migrations/{Version20231122111334.php => Version20231122111336.php} (89%) diff --git a/migrations/Version20231122111334.php b/migrations/Version20231122111336.php similarity index 89% rename from migrations/Version20231122111334.php rename to migrations/Version20231122111336.php index 5ce19aedf..47b26f1a6 100644 --- a/migrations/Version20231122111334.php +++ b/migrations/Version20231122111336.php @@ -7,7 +7,7 @@ use Doctrine\DBAL\Schema\Schema; use Doctrine\Migrations\AbstractMigration; -final class Version20231122111334 extends AbstractMigration +final class Version20231122111336 extends AbstractMigration { public function getDescription(): string { @@ -23,9 +23,10 @@ public function up(Schema $schema): void $this->addSql('INSERT INTO `settings` (`item`, `value`) VALUES (\'group_fill_term\', \'2023-10-20\')'); $this->addSql('INSERT INTO `settings` (`item`, `value`) VALUES (\'group_max_members\', \'11\')'); $this->addSql('INSERT INTO `settings` (`item`, `value`) VALUES (\'group_min_members\', \'5\')'); + $this->addSql('INSERT INTO `resource` (`id`,`name`) VALUES (9, \'groups\')'); $this->addSql('INSERT INTO `permission` (`id`, `resource_id`, `name`) VALUES (15, 9, \'manage\')'); - $this->addSql('INSERT INTO `resource` (`name`) VALUES (\'groups\')'); $this->addSql('INSERT INTO `role_permission` (`role_id`, `permission_id`) VALUES (8, 15)'); + $this->addSql('INSERT INTO `role_permission` (`role_id`, `permission_id`) VALUES (7, 15)'); $this->addSql('INSERT INTO `status` (`name`) VALUES (\'čeká na naplnění\')'); $this->addSql('INSERT INTO `status` (`name`) VALUES (\'čeká na zaplacení\')'); $this->addSql('INSERT INTO `status` (`name`) VALUES (\'zaplacená\')');