api/src/Migrations/Version20201130115730.php
<?php declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Login delegate
*/
final class Version20201130115730 extends AbstractMigration
{
public function up(Schema $schema) : void
{
$this->addSql("INSERT INTO `auth_item` (`id`, `auth_rule_id`, `type`, `name`, `description`) VALUES (256, NULL, 1, 'login_delegate', 'Login as another user');");
$this->addSql("INSERT INTO `action` (`id`, `name`, `in_log`, `in_diary`, `progression`, `created_date`, `updated_date`, `position`, `type`) VALUES (88, 'login_delegate', NULL, 1, NULL, '2020-11-30 14:30:00', NULL, '0', NULL)");
}
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\'.');
}
}