addSql('ALTER TABLE bovine ADD ednotif_confirmed_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL'); // Backfill : les bovins déjà en BDD ont été synchronisés depuis EDNOTIF // historiquement (commande sync-inventory), on les considère confirmés. // Les nouveaux bovins créés via le workflow entrée auront `NULL` par // défaut et seront confirmés au prochain sync. $this->addSql('UPDATE bovine SET ednotif_confirmed_at = NOW() WHERE ednotif_confirmed_at IS NULL'); } public function down(Schema $schema): void { $this->addSql('ALTER TABLE bovine DROP ednotif_confirmed_at'); } }