diff --git a/admin/schema_updates/2024-09-10-add-editor-id-to-payment-historical.sql b/admin/schema_updates/2024-09-10-add-editor-id-to-payment-historical.sql new file mode 100644 index 00000000..cd8b107b --- /dev/null +++ b/admin/schema_updates/2024-09-10-add-editor-id-to-payment-historical.sql @@ -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;