diff --git a/pkg/database/migrations/postgres/39_edits_updates.up.sql b/pkg/database/migrations/postgres/39_edits_updates.up.sql index 69545d8c3..357faa410 100644 --- a/pkg/database/migrations/postgres/39_edits_updates.up.sql +++ b/pkg/database/migrations/postgres/39_edits_updates.up.sql @@ -1,3 +1,6 @@ ALTER TABLE "edits" ADD COLUMN "update_count" integer NOT NULL DEFAULT 0; +UPDATE "edits" +SET "update_count" = 1 +WHERE "updated_at" IS NOT NULL;