addSql('CREATE TABLE attachment (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, content_type VARCHAR(255) NOT NULL, size INTEGER NOT NULL, filename VARCHAR(255) NOT NULL, attachable_type VARCHAR(255) NOT NULL, created_at DATETIME NOT NULL --(DC2Type:datetime_immutable) , updated_at DATETIME DEFAULT NULL, description VARCHAR(255) DEFAULT NULL, content_name VARCHAR(255) NOT NULL)'); $this->addSql('CREATE TABLE content_type (id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL)'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('DROP TABLE attachment'); $this->addSql('DROP TABLE content_type'); } }