Skip to content

Commit

Permalink
fix tests and column update
Browse files Browse the repository at this point in the history
  • Loading branch information
amCap1712 committed Sep 10, 2024
1 parent 27a0c99 commit dd8757c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/schema_updates/2024-09-09-add-editor-id-to-payment.sql
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BEGIN;

ALTER TABLE supporter ADD COLUMN musicbrainz_row_id INTEGER;
ALTER TABLE payment ADD COLUMN editor_id INTEGER;
ALTER TABLE supporter ADD COLUMN musicbrainz_row_id INTEGER UNIQUE;
ALTER TABLE payment ADD COLUMN editor_id INTEGER UNIQUE;

COMMIT;
2 changes: 2 additions & 0 deletions metabrainz/model/access_log_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ def setUp(self):
def test_access_log(self):
supporter_0 = Supporter.add(is_commercial=False,
musicbrainz_id="mb_test",
musicbrainz_row_id=1,
contact_name="Mr. Test",
contact_email="test@musicbrainz.org",
data_usage_desc="poop!",
Expand All @@ -25,6 +26,7 @@ def test_access_log(self):

supporter_1 = Supporter.add(is_commercial=True,
musicbrainz_id="mb_commercial",
musicbrainz_row_id=3,
contact_name="Mr. Commercial",
contact_email="testc@musicbrainz.org",
data_usage_desc="poop!",
Expand Down

0 comments on commit dd8757c

Please sign in to comment.