addSql('ALTER TABLE product ADD change_date DATETIME DEFAULT CURRENT_TIMESTAMP NOT NULL, DROP update_time'); } public function down(Schema $schema): void { // this down() migration is auto-generated, please modify it to your needs $this->addSql('ALTER TABLE product ADD update_time DATETIME NOT NULL, DROP change_date'); } }