* Auto-generated Migration: Please modify to your needs!
12
*/
13
final class Version20211120120437 extends AbstractMigration
14
{
15
public function getDescription(): string
16
{
17
return '';
18
}
19
20
public function up(Schema $schema): void
21
{
22
// It's a bit confusing as to whether messenger_messages will exist or not, especially as the auto-setup
23
// fails if there's a transaction going on, which there *usually* is with our setup, as our queueing
24
// is done in listeners on entity persists etc.
25
if (!$schema->hasTable('messenger_messages')) {
26
$this->addSql('CREATE TABLE messenger_messages (id BIGINT AUTO_INCREMENT NOT NULL, body LONGTEXT NOT NULL, headers LONGTEXT NOT NULL, queue_name VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL, available_at DATETIME NOT NULL, delivered_at DATETIME DEFAULT NULL, INDEX IDX_75EA56E016BA31DB (delivered_at), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
27
}
28
}
29
30
public function down(Schema $schema): void
31
{
32
// this down() migration is auto-generated, please modify it to your needs