addSql('ALTER TABLE stock 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 stock ADD update_time DATETIME DEFAULT NULL, DROP change_date'); } }