for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
// phpcs:ignoreFile
namespace DoctrineMigrations;
use Doctrine\DBAL\Platforms\AbstractMySQLPlatform;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230930102814 extends AbstractMigration
{
* @noinspection PhpMissingParentCallCommonInspection
public function getDescription(): string
return 'TODO: Describe reason for this migration';
}
public function up(Schema $schema): void
// this up() migration is auto-generated, please modify it to your needs
$this->abortIf(
!$this->connection->getDatabasePlatform() instanceof AbstractMySQLPlatform,
'Migration can only be executed safely on \'mysql\'.'
);
$sql = <<<SQL
ALTER TABLE log_request
CHANGE headers headers JSON NOT NULL COMMENT '(DC2Type:json)',
CHANGE parameters parameters JSON NOT NULL COMMENT '(DC2Type:json)'
SQL;
$this->addSql($sql);
public function down(Schema $schema): void
// this down() migration is auto-generated, please modify it to your needs
CHANGE headers headers LONGTEXT NOT NULL COMMENT '(DC2Type:json)',
CHANGE parameters parameters LONGTEXT NOT NULL COMMENT '(DC2Type:json)'