| Conditions | 2 |
| Paths | 2 |
| Total Lines | 7 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 | } |
||
| 36 |