Skip to content

Commit

Permalink
Add sql script to update musicbrainz row ids in payments table
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 committed Sep 10, 2024
1 parent 83270e0 commit 71905b1
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
-- after running python manage.py import-musicbrainz-row-ids command

BEGIN;

UPDATE payment p
SET editor_id = s.musicbrainz_row_id
FROM supporter s
WHERE p.editor_name = s.musicbrainz_id;

COMMIT;

0 comments on commit 71905b1

Please sign in to comment.