Skip to content

Commit

Permalink
Fix edit update migration to set revision of old edits (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash authored Dec 29, 2024
1 parent 196feed commit 9a90e38
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/database/migrations/postgres/39_edits_updates.up.sql
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 9a90e38

Please sign in to comment.