migrations/Version20240304034919.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 Version20240304034919 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.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "app_suplier_styles_add" WHERE `permissions`.`permission_route` = "supplier-categories/index/add" AND permission_group = "Supllier Categories"');
  19.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "app_suplier_styles_delete" WHERE `permissions`.`permission_route` = "supplier-categories/index/delete/*"AND permission_group = "Supllier Categories"');
  20.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "app_suplier_styles_edit" WHERE `permissions`.`permission_route` = "supplier-categories/index/edit/*" AND permission_group = "Supllier Categories"');
  21.         $this->addSql('UPDATE `permissions` SET `permission_slug` = "app_suplier_styles" WHERE `permissions`.`permission_route` = "supplier-categories/index" AND permission_group = "Supllier Categories"');
  22.        
  23.         $this->addSql('UPDATE `permissions` SET `permission_route` = "supplier-styles/index/add" , `permission_group` = "Supllier Styles" WHERE `permissions`.`permission_slug` = "app_suplier_styles_add"');
  24.         $this->addSql('UPDATE `permissions` SET `permission_route` = "supplier-styles/index/delete/", `permission_group` = "Supllier Styles" WHERE `permissions`.`permission_slug` = "app_suplier_styles_delete"');
  25.         $this->addSql('UPDATE `permissions` SET `permission_route` = "supplier-styles/index/edit/*",`permission_group` = "Supllier Styles" WHERE `permissions`.`permission_slug` = "app_suplier_styles_edit"');
  26.         $this->addSql('UPDATE `permissions` SET `permission_route` = "supplier-styles/index" ,`permission_group` = "Supllier Styles" WHERE `permissions`.`permission_slug` = "app_suplier_styles"');
  27.         
  28.     }
  29.     public function down(Schema $schema): void
  30.     {
  31.     }
  32. }