diff --git a/migrations/20250314_fix_notification_metadata_experiment_modal.go b/migrations/20250314_fix_notification_metadata_experiment_modal.go index 9226494..3d3618c 100644 --- a/migrations/20250314_fix_notification_metadata_experiment_modal.go +++ b/migrations/20250314_fix_notification_metadata_experiment_modal.go @@ -28,7 +28,7 @@ func (m MigrateFixNotificationMetadataExperimentModal20241212) Up(ctx context.Co return db.Transaction(func(tx *gorm.DB) error { // Update all chore where notification metadata is a null stirng 'null' to empty json {}: - if err := tx.Table("chores").Where("notification_metadata = ?", "null").Update("notification_metadata", "{}").Error; err != nil { + if err := tx.Table("chores").Where("notification_meta = ?", "null").Update("notification_meta", "{}").Error; err != nil { log.Errorf("Failed to update chores with null notification metadata: %v", err) return err }