Skip to content

Commit

Permalink
sql: add series creator achievement
Browse files Browse the repository at this point in the history
  • Loading branch information
akashgp09 committed Jul 22, 2021
1 parent e698645 commit 3e0d3ea
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sql/migrations/series-achievement/down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
BEGIN;

DELETE FROM bookbrainz.title_type WHERE id=13;
DELETE FROM bookbrainz.achievement_type WHERE id BETWEEN 28 and 30;

COMMIT;
15 changes: 15 additions & 0 deletions sql/migrations/series-achievement/up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
BEGIN;


INSERT INTO bookbrainz.title_type (id, title, description)
VALUES
( 13, 'Series Creator', 'Complete the Series Creator Achievement');

INSERT INTO bookbrainz.achievement_type (id, name, description, badge_url)
VALUES
( 28, 'Series Creator I', 'Create one Series', '/images/blankbadge.svg'),
( 29, 'Series Creator II', 'Create 10 Series', '/images/blankbadge.svg'),
( 30, 'Series Creator III', 'Create 100 Series', '/images/blankbadge.svg');


COMMIT;

0 comments on commit 3e0d3ea

Please sign in to comment.