migrations/Version20240217110938.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20240217110938 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         
  19.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "app_purchasing_groups_add" WHERE `permissions`.`permission_route` = "purchasing-groups/index/add"');
  20.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "app_purchasing_groups_edit" WHERE `permissions`.`permission_route` = "purchasing-groups/index/edit/*"');
  21.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "app_purchasing_groups_delete" WHERE `permissions`.`permission_route` = "purchasing-groups/index/delete/*"');
  22.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "admin_community_category_add" WHERE `permissions`.`permission_route` = "community-category/index/add/*"');
  23.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "admin_community_category_edit" WHERE `permissions`.`permission_route` = "community-category/index/edit/*"');
  24.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "admin_community_category_delete" WHERE `permissions`.`permission_route` = "community-category/index/delete/*"');
  25.         $this->addSql('UPDATE `permissions` SET `permission_group` = "Community Groups" WHERE `permissions`.`permission_group` = "Community groups"');
  26.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "admin_email_templates_listing" WHERE `permissions`.`permission_route` = "email-templates/index"');
  27.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "admin_contact_preferences_listing" WHERE `permissions`.`permission_route` = "contact-preferences"');
  28.     
  29.     }
  30.     
  31.     public function down(Schema $schema): void
  32.     {
  33.        
  34.     }
  35. }