-
-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #670 from akashgp09/series-identifiers
feat(series): add identifiers
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
BEGIN; | ||
|
||
DELETE FROM bookbrainz.identifier_type WHERE id BETWEEN 30 and 34; | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
BEGIN; | ||
|
||
INSERT INTO bookbrainz.identifier_type ( id, label, description, detection_regex, validation_regex, display_template, entity_type, parent_id, child_order, deprecated ) | ||
VALUES | ||
( 30, 'Wikidata ID', 'The ID for the Wikidata page corresponding to a BookBrainz Series.', 'wikidata\.org/wiki/(?:Special:\w*\/)?(Q\d+)', '^Q\d+$', 'Placeholder Template', 'Series', NULL, 0, false), | ||
( 31, 'VIAF', 'The VIAF ID corresponding to a BookBrainz Series', 'viaf\.org/viaf/(\d+)', '^(\d+)$', 'Placeholder Template', 'Series', NULL, 0, false), | ||
( 32, 'MusicBrainz Series ID', 'The ID for the MusicBrainz Series corresponding to a BookBrainz Series.', 'musicbrainz\.org/series/([a-f0-9]{8}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{12})', '^[a-f0-9]{8}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{4}-?[a-f0-9]{12}$', 'Placeholder Template', 'Series', NULL, 0, false), | ||
( 33, 'Goodreads Series ID', 'Goodreads series ID that corresponds to a BookBrainz Series', 'goodreads\.com\/series\/(\d+)(?:[-.]\S+)?', '^[1-9]\d*$', 'Placeholder Template', 'Series', NULL, 0, false), | ||
( 34, 'IMDB List ID', 'The ID for a list from IMDB', 'imdb\.com/list/(ls\d+)', '^(ls\d+)$', 'Placeholder Template', 'Series', NULL, 0, false); | ||
|
||
COMMIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters