addSql(<<<'SQL' CREATE TABLE record_number_patterns ( id INT AUTO_INCREMENT NOT NULL, entity_type VARCHAR(10) NOT NULL, entity_id INT NOT NULL, enabled TINYINT DEFAULT 0 NOT NULL, pattern VARCHAR(60) NOT NULL, reset_policy VARCHAR(10) DEFAULT 'none' NOT NULL, counter INT DEFAULT 0 NOT NULL, counter_period VARCHAR(7) DEFAULT NULL, updated_at INT NOT NULL, UNIQUE INDEX uniq_record_number_pattern (entity_type, entity_id), PRIMARY KEY (id) ) DEFAULT CHARACTER SET utf8mb4 SQL); } public function down(Schema $schema): void { $this->addSql('DROP TABLE record_number_patterns'); } }