addSql('CREATE TABLE app_log (id INT AUTO_INCREMENT NOT NULL, level VARCHAR(16) NOT NULL, message LONGTEXT NOT NULL, context LONGTEXT DEFAULT NULL, channel VARCHAR(32) DEFAULT NULL, path VARCHAR(255) DEFAULT NULL, created_at INT NOT NULL, INDEX idx_app_log_level (level, created_at), INDEX idx_app_log_created (created_at), PRIMARY KEY (id)) DEFAULT CHARACTER SET utf8mb4'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('DROP TABLE app_log'); } }