<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230104220542 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE alerts (id INT AUTO_INCREMENT NOT NULL, alert_id VARCHAR(255) NOT NULL, history_id VARCHAR(255) NOT NULL, trigger_type_id INT NOT NULL, alert_name VARCHAR(255) NOT NULL, trigger_metadata VARCHAR(255) NOT NULL, event_datetime DATE NOT NULL, location LONGTEXT NOT NULL COMMENT \'(DC2Type:simple_array)\', ad_id VARCHAR(255) NOT NULL, alert_details_url VARCHAR(255) NOT NULL, project_name VARCHAR(255) NOT NULL, project_id VARCHAR(255) NOT NULL, UNIQUE INDEX uk_geoedge_alert_alert_id (alert_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE alerts');
}
}