api/src/Migrations/Version20210504090600.php
<?php declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Login delegate
*/
final class Version20210504090600 extends AbstractMigration
{
public function up(Schema $schema) : void
{
// Add the interoperability rights for Image resource
$this->addSql("INSERT INTO `auth_item` (`id`, `auth_rule_id`, `type`, `name`, `description`) VALUES (268, NULL, '1', 'images_regenversions', 'Regen images versions');");
$this->addSql("INSERT INTO `auth_item` (`id`, `auth_rule_id`, `type`, `name`, `description`) VALUES (269, NULL, '1', 'image_create', 'Create an image');");
$this->addSql("INSERT INTO `auth_item` (`id`, `auth_rule_id`, `type`, `name`, `description`) VALUES (270, NULL, '1', 'image_read', 'View an image');");
$this->addSql("INSERT INTO `auth_item` (`id`, `auth_rule_id`, `type`, `name`, `description`) VALUES (271, NULL, '1', 'image_update', 'Update an image');");
$this->addSql("INSERT INTO `auth_item` (`id`, `auth_rule_id`, `type`, `name`, `description`) VALUES (272, NULL, '1', 'image_delete', 'Delete an image');");
$this->addSql("INSERT INTO `auth_item` (`id`, `auth_rule_id`, `type`, `name`, `description`) VALUES (273, NULL, '1', 'image_list', 'List images');");
$this->addSql("INSERT INTO `auth_item_child` (`parent_id`, `child_id`) VALUES ('2', '268');");
$this->addSql("INSERT INTO `auth_item_child` (`parent_id`, `child_id`) VALUES ('5', '269');");
$this->addSql("INSERT INTO `auth_item_child` (`parent_id`, `child_id`) VALUES ('5', '270');");
$this->addSql("INSERT INTO `auth_item_child` (`parent_id`, `child_id`) VALUES ('5', '271');");
$this->addSql("INSERT INTO `auth_item_child` (`parent_id`, `child_id`) VALUES ('5', '272');");
$this->addSql("INSERT INTO `auth_item_child` (`parent_id`, `child_id`) VALUES ('5', '273');");
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \'mysql\'.');
}
}