-- Automatically generated, do not edit.
\unset ON_ERROR_STOP

SELECT setval('alternative_release_id_seq', COALESCE((SELECT MAX(id) FROM alternative_release), 0) + 1, FALSE);
SELECT setval('alternative_release_type_id_seq', COALESCE((SELECT MAX(id) FROM alternative_release_type), 0) + 1, FALSE);
SELECT setval('alternative_medium_id_seq', COALESCE((SELECT MAX(id) FROM alternative_medium), 0) + 1, FALSE);
SELECT setval('alternative_track_id_seq', COALESCE((SELECT MAX(id) FROM alternative_track), 0) + 1, FALSE);
SELECT setval('annotation_id_seq', COALESCE((SELECT MAX(id) FROM annotation), 0) + 1, FALSE);
SELECT setval('application_id_seq', COALESCE((SELECT MAX(id) FROM application), 0) + 1, FALSE);
SELECT setval('area_type_id_seq', COALESCE((SELECT MAX(id) FROM area_type), 0) + 1, FALSE);
SELECT setval('area_id_seq', COALESCE((SELECT MAX(id) FROM area), 0) + 1, FALSE);
SELECT setval('area_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM area_alias_type), 0) + 1, FALSE);
SELECT setval('area_alias_id_seq', COALESCE((SELECT MAX(id) FROM area_alias), 0) + 1, FALSE);
SELECT setval('area_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM area_attribute_type), 0) + 1, FALSE);
SELECT setval('area_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM area_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('area_attribute_id_seq', COALESCE((SELECT MAX(id) FROM area_attribute), 0) + 1, FALSE);
SELECT setval('artist_id_seq', COALESCE((SELECT MAX(id) FROM artist), 0) + 1, FALSE);
SELECT setval('artist_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM artist_alias_type), 0) + 1, FALSE);
SELECT setval('artist_alias_id_seq', COALESCE((SELECT MAX(id) FROM artist_alias), 0) + 1, FALSE);
SELECT setval('artist_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM artist_attribute_type), 0) + 1, FALSE);
SELECT setval('artist_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM artist_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('artist_attribute_id_seq', COALESCE((SELECT MAX(id) FROM artist_attribute), 0) + 1, FALSE);
SELECT setval('artist_credit_id_seq', COALESCE((SELECT MAX(id) FROM artist_credit), 0) + 1, FALSE);
SELECT setval('artist_type_id_seq', COALESCE((SELECT MAX(id) FROM artist_type), 0) + 1, FALSE);
SELECT setval('autoeditor_election_id_seq', COALESCE((SELECT MAX(id) FROM autoeditor_election), 0) + 1, FALSE);
SELECT setval('autoeditor_election_vote_id_seq', COALESCE((SELECT MAX(id) FROM autoeditor_election_vote), 0) + 1, FALSE);
SELECT setval('cdtoc_id_seq', COALESCE((SELECT MAX(id) FROM cdtoc), 0) + 1, FALSE);
SELECT setval('cdtoc_raw_id_seq', COALESCE((SELECT MAX(id) FROM cdtoc_raw), 0) + 1, FALSE);
SELECT setval('edit_id_seq', COALESCE((SELECT MAX(id) FROM edit), 0) + 1, FALSE);
SELECT setval('edit_note_id_seq', COALESCE((SELECT MAX(id) FROM edit_note), 0) + 1, FALSE);
SELECT setval('edit_note_change_id_seq', COALESCE((SELECT MAX(id) FROM edit_note_change), 0) + 1, FALSE);
SELECT setval('editor_id_seq', COALESCE((SELECT MAX(id) FROM editor), 0) + 1, FALSE);
SELECT setval('editor_preference_id_seq', COALESCE((SELECT MAX(id) FROM editor_preference), 0) + 1, FALSE);
SELECT setval('editor_subscribe_artist_id_seq', COALESCE((SELECT MAX(id) FROM editor_subscribe_artist), 0) + 1, FALSE);
SELECT setval('editor_subscribe_collection_id_seq', COALESCE((SELECT MAX(id) FROM editor_subscribe_collection), 0) + 1, FALSE);
SELECT setval('editor_subscribe_label_id_seq', COALESCE((SELECT MAX(id) FROM editor_subscribe_label), 0) + 1, FALSE);
SELECT setval('editor_subscribe_editor_id_seq', COALESCE((SELECT MAX(id) FROM editor_subscribe_editor), 0) + 1, FALSE);
SELECT setval('editor_subscribe_series_id_seq', COALESCE((SELECT MAX(id) FROM editor_subscribe_series), 0) + 1, FALSE);
SELECT setval('event_id_seq', COALESCE((SELECT MAX(id) FROM event), 0) + 1, FALSE);
SELECT setval('event_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM event_alias_type), 0) + 1, FALSE);
SELECT setval('event_alias_id_seq', COALESCE((SELECT MAX(id) FROM event_alias), 0) + 1, FALSE);
SELECT setval('event_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM event_attribute_type), 0) + 1, FALSE);
SELECT setval('event_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM event_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('event_attribute_id_seq', COALESCE((SELECT MAX(id) FROM event_attribute), 0) + 1, FALSE);
SELECT setval('event_type_id_seq', COALESCE((SELECT MAX(id) FROM event_type), 0) + 1, FALSE);
SELECT setval('gender_id_seq', COALESCE((SELECT MAX(id) FROM gender), 0) + 1, FALSE);
SELECT setval('genre_id_seq', COALESCE((SELECT MAX(id) FROM genre), 0) + 1, FALSE);
SELECT setval('genre_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM genre_alias_type), 0) + 1, FALSE);
SELECT setval('genre_alias_id_seq', COALESCE((SELECT MAX(id) FROM genre_alias), 0) + 1, FALSE);
SELECT setval('instrument_type_id_seq', COALESCE((SELECT MAX(id) FROM instrument_type), 0) + 1, FALSE);
SELECT setval('instrument_id_seq', COALESCE((SELECT MAX(id) FROM instrument), 0) + 1, FALSE);
SELECT setval('instrument_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM instrument_alias_type), 0) + 1, FALSE);
SELECT setval('instrument_alias_id_seq', COALESCE((SELECT MAX(id) FROM instrument_alias), 0) + 1, FALSE);
SELECT setval('instrument_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM instrument_attribute_type), 0) + 1, FALSE);
SELECT setval('instrument_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM instrument_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('instrument_attribute_id_seq', COALESCE((SELECT MAX(id) FROM instrument_attribute), 0) + 1, FALSE);
SELECT setval('isrc_id_seq', COALESCE((SELECT MAX(id) FROM isrc), 0) + 1, FALSE);
SELECT setval('iswc_id_seq', COALESCE((SELECT MAX(id) FROM iswc), 0) + 1, FALSE);
SELECT setval('l_area_area_id_seq', COALESCE((SELECT MAX(id) FROM l_area_area), 0) + 1, FALSE);
SELECT setval('l_area_artist_id_seq', COALESCE((SELECT MAX(id) FROM l_area_artist), 0) + 1, FALSE);
SELECT setval('l_area_event_id_seq', COALESCE((SELECT MAX(id) FROM l_area_event), 0) + 1, FALSE);
SELECT setval('l_area_genre_id_seq', COALESCE((SELECT MAX(id) FROM l_area_genre), 0) + 1, FALSE);
SELECT setval('l_area_instrument_id_seq', COALESCE((SELECT MAX(id) FROM l_area_instrument), 0) + 1, FALSE);
SELECT setval('l_area_label_id_seq', COALESCE((SELECT MAX(id) FROM l_area_label), 0) + 1, FALSE);
SELECT setval('l_area_mood_id_seq', COALESCE((SELECT MAX(id) FROM l_area_mood), 0) + 1, FALSE);
SELECT setval('l_area_place_id_seq', COALESCE((SELECT MAX(id) FROM l_area_place), 0) + 1, FALSE);
SELECT setval('l_area_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_area_recording), 0) + 1, FALSE);
SELECT setval('l_area_release_id_seq', COALESCE((SELECT MAX(id) FROM l_area_release), 0) + 1, FALSE);
SELECT setval('l_area_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_area_release_group), 0) + 1, FALSE);
SELECT setval('l_area_series_id_seq', COALESCE((SELECT MAX(id) FROM l_area_series), 0) + 1, FALSE);
SELECT setval('l_area_url_id_seq', COALESCE((SELECT MAX(id) FROM l_area_url), 0) + 1, FALSE);
SELECT setval('l_area_work_id_seq', COALESCE((SELECT MAX(id) FROM l_area_work), 0) + 1, FALSE);
SELECT setval('l_artist_artist_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_artist), 0) + 1, FALSE);
SELECT setval('l_artist_event_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_event), 0) + 1, FALSE);
SELECT setval('l_artist_genre_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_genre), 0) + 1, FALSE);
SELECT setval('l_artist_instrument_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_instrument), 0) + 1, FALSE);
SELECT setval('l_artist_label_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_label), 0) + 1, FALSE);
SELECT setval('l_artist_mood_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_mood), 0) + 1, FALSE);
SELECT setval('l_artist_place_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_place), 0) + 1, FALSE);
SELECT setval('l_artist_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_recording), 0) + 1, FALSE);
SELECT setval('l_artist_release_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_release), 0) + 1, FALSE);
SELECT setval('l_artist_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_release_group), 0) + 1, FALSE);
SELECT setval('l_artist_series_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_series), 0) + 1, FALSE);
SELECT setval('l_artist_url_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_url), 0) + 1, FALSE);
SELECT setval('l_artist_work_id_seq', COALESCE((SELECT MAX(id) FROM l_artist_work), 0) + 1, FALSE);
SELECT setval('l_event_event_id_seq', COALESCE((SELECT MAX(id) FROM l_event_event), 0) + 1, FALSE);
SELECT setval('l_event_genre_id_seq', COALESCE((SELECT MAX(id) FROM l_event_genre), 0) + 1, FALSE);
SELECT setval('l_event_instrument_id_seq', COALESCE((SELECT MAX(id) FROM l_event_instrument), 0) + 1, FALSE);
SELECT setval('l_event_label_id_seq', COALESCE((SELECT MAX(id) FROM l_event_label), 0) + 1, FALSE);
SELECT setval('l_event_mood_id_seq', COALESCE((SELECT MAX(id) FROM l_event_mood), 0) + 1, FALSE);
SELECT setval('l_event_place_id_seq', COALESCE((SELECT MAX(id) FROM l_event_place), 0) + 1, FALSE);
SELECT setval('l_event_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_event_recording), 0) + 1, FALSE);
SELECT setval('l_event_release_id_seq', COALESCE((SELECT MAX(id) FROM l_event_release), 0) + 1, FALSE);
SELECT setval('l_event_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_event_release_group), 0) + 1, FALSE);
SELECT setval('l_event_series_id_seq', COALESCE((SELECT MAX(id) FROM l_event_series), 0) + 1, FALSE);
SELECT setval('l_event_url_id_seq', COALESCE((SELECT MAX(id) FROM l_event_url), 0) + 1, FALSE);
SELECT setval('l_event_work_id_seq', COALESCE((SELECT MAX(id) FROM l_event_work), 0) + 1, FALSE);
SELECT setval('l_label_label_id_seq', COALESCE((SELECT MAX(id) FROM l_label_label), 0) + 1, FALSE);
SELECT setval('l_genre_genre_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_genre), 0) + 1, FALSE);
SELECT setval('l_genre_instrument_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_instrument), 0) + 1, FALSE);
SELECT setval('l_genre_label_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_label), 0) + 1, FALSE);
SELECT setval('l_genre_mood_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_mood), 0) + 1, FALSE);
SELECT setval('l_genre_place_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_place), 0) + 1, FALSE);
SELECT setval('l_genre_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_recording), 0) + 1, FALSE);
SELECT setval('l_genre_release_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_release), 0) + 1, FALSE);
SELECT setval('l_genre_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_release_group), 0) + 1, FALSE);
SELECT setval('l_genre_series_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_series), 0) + 1, FALSE);
SELECT setval('l_genre_url_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_url), 0) + 1, FALSE);
SELECT setval('l_genre_work_id_seq', COALESCE((SELECT MAX(id) FROM l_genre_work), 0) + 1, FALSE);
SELECT setval('l_instrument_instrument_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_instrument), 0) + 1, FALSE);
SELECT setval('l_instrument_label_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_label), 0) + 1, FALSE);
SELECT setval('l_instrument_mood_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_mood), 0) + 1, FALSE);
SELECT setval('l_instrument_place_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_place), 0) + 1, FALSE);
SELECT setval('l_instrument_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_recording), 0) + 1, FALSE);
SELECT setval('l_instrument_release_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_release), 0) + 1, FALSE);
SELECT setval('l_instrument_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_release_group), 0) + 1, FALSE);
SELECT setval('l_instrument_series_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_series), 0) + 1, FALSE);
SELECT setval('l_instrument_url_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_url), 0) + 1, FALSE);
SELECT setval('l_instrument_work_id_seq', COALESCE((SELECT MAX(id) FROM l_instrument_work), 0) + 1, FALSE);
SELECT setval('l_label_mood_id_seq', COALESCE((SELECT MAX(id) FROM l_label_mood), 0) + 1, FALSE);
SELECT setval('l_label_place_id_seq', COALESCE((SELECT MAX(id) FROM l_label_place), 0) + 1, FALSE);
SELECT setval('l_label_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_label_recording), 0) + 1, FALSE);
SELECT setval('l_label_release_id_seq', COALESCE((SELECT MAX(id) FROM l_label_release), 0) + 1, FALSE);
SELECT setval('l_label_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_label_release_group), 0) + 1, FALSE);
SELECT setval('l_label_series_id_seq', COALESCE((SELECT MAX(id) FROM l_label_series), 0) + 1, FALSE);
SELECT setval('l_label_url_id_seq', COALESCE((SELECT MAX(id) FROM l_label_url), 0) + 1, FALSE);
SELECT setval('l_label_work_id_seq', COALESCE((SELECT MAX(id) FROM l_label_work), 0) + 1, FALSE);
SELECT setval('l_mood_mood_id_seq', COALESCE((SELECT MAX(id) FROM l_mood_mood), 0) + 1, FALSE);
SELECT setval('l_mood_place_id_seq', COALESCE((SELECT MAX(id) FROM l_mood_place), 0) + 1, FALSE);
SELECT setval('l_mood_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_mood_recording), 0) + 1, FALSE);
SELECT setval('l_mood_release_id_seq', COALESCE((SELECT MAX(id) FROM l_mood_release), 0) + 1, FALSE);
SELECT setval('l_mood_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_mood_release_group), 0) + 1, FALSE);
SELECT setval('l_mood_series_id_seq', COALESCE((SELECT MAX(id) FROM l_mood_series), 0) + 1, FALSE);
SELECT setval('l_mood_url_id_seq', COALESCE((SELECT MAX(id) FROM l_mood_url), 0) + 1, FALSE);
SELECT setval('l_mood_work_id_seq', COALESCE((SELECT MAX(id) FROM l_mood_work), 0) + 1, FALSE);
SELECT setval('l_place_place_id_seq', COALESCE((SELECT MAX(id) FROM l_place_place), 0) + 1, FALSE);
SELECT setval('l_place_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_place_recording), 0) + 1, FALSE);
SELECT setval('l_place_release_id_seq', COALESCE((SELECT MAX(id) FROM l_place_release), 0) + 1, FALSE);
SELECT setval('l_place_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_place_release_group), 0) + 1, FALSE);
SELECT setval('l_place_series_id_seq', COALESCE((SELECT MAX(id) FROM l_place_series), 0) + 1, FALSE);
SELECT setval('l_place_url_id_seq', COALESCE((SELECT MAX(id) FROM l_place_url), 0) + 1, FALSE);
SELECT setval('l_place_work_id_seq', COALESCE((SELECT MAX(id) FROM l_place_work), 0) + 1, FALSE);
SELECT setval('l_recording_recording_id_seq', COALESCE((SELECT MAX(id) FROM l_recording_recording), 0) + 1, FALSE);
SELECT setval('l_recording_release_id_seq', COALESCE((SELECT MAX(id) FROM l_recording_release), 0) + 1, FALSE);
SELECT setval('l_recording_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_recording_release_group), 0) + 1, FALSE);
SELECT setval('l_recording_series_id_seq', COALESCE((SELECT MAX(id) FROM l_recording_series), 0) + 1, FALSE);
SELECT setval('l_recording_url_id_seq', COALESCE((SELECT MAX(id) FROM l_recording_url), 0) + 1, FALSE);
SELECT setval('l_recording_work_id_seq', COALESCE((SELECT MAX(id) FROM l_recording_work), 0) + 1, FALSE);
SELECT setval('l_release_release_id_seq', COALESCE((SELECT MAX(id) FROM l_release_release), 0) + 1, FALSE);
SELECT setval('l_release_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_release_release_group), 0) + 1, FALSE);
SELECT setval('l_release_series_id_seq', COALESCE((SELECT MAX(id) FROM l_release_series), 0) + 1, FALSE);
SELECT setval('l_release_url_id_seq', COALESCE((SELECT MAX(id) FROM l_release_url), 0) + 1, FALSE);
SELECT setval('l_release_work_id_seq', COALESCE((SELECT MAX(id) FROM l_release_work), 0) + 1, FALSE);
SELECT setval('l_release_group_release_group_id_seq', COALESCE((SELECT MAX(id) FROM l_release_group_release_group), 0) + 1, FALSE);
SELECT setval('l_release_group_series_id_seq', COALESCE((SELECT MAX(id) FROM l_release_group_series), 0) + 1, FALSE);
SELECT setval('l_release_group_url_id_seq', COALESCE((SELECT MAX(id) FROM l_release_group_url), 0) + 1, FALSE);
SELECT setval('l_release_group_work_id_seq', COALESCE((SELECT MAX(id) FROM l_release_group_work), 0) + 1, FALSE);
SELECT setval('l_series_series_id_seq', COALESCE((SELECT MAX(id) FROM l_series_series), 0) + 1, FALSE);
SELECT setval('l_series_url_id_seq', COALESCE((SELECT MAX(id) FROM l_series_url), 0) + 1, FALSE);
SELECT setval('l_series_work_id_seq', COALESCE((SELECT MAX(id) FROM l_series_work), 0) + 1, FALSE);
SELECT setval('l_url_url_id_seq', COALESCE((SELECT MAX(id) FROM l_url_url), 0) + 1, FALSE);
SELECT setval('l_url_work_id_seq', COALESCE((SELECT MAX(id) FROM l_url_work), 0) + 1, FALSE);
SELECT setval('l_work_work_id_seq', COALESCE((SELECT MAX(id) FROM l_work_work), 0) + 1, FALSE);
SELECT setval('label_id_seq', COALESCE((SELECT MAX(id) FROM label), 0) + 1, FALSE);
SELECT setval('label_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM label_alias_type), 0) + 1, FALSE);
SELECT setval('label_alias_id_seq', COALESCE((SELECT MAX(id) FROM label_alias), 0) + 1, FALSE);
SELECT setval('label_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM label_attribute_type), 0) + 1, FALSE);
SELECT setval('label_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM label_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('label_attribute_id_seq', COALESCE((SELECT MAX(id) FROM label_attribute), 0) + 1, FALSE);
SELECT setval('label_type_id_seq', COALESCE((SELECT MAX(id) FROM label_type), 0) + 1, FALSE);
SELECT setval('language_id_seq', COALESCE((SELECT MAX(id) FROM language), 0) + 1, FALSE);
SELECT setval('link_id_seq', COALESCE((SELECT MAX(id) FROM link), 0) + 1, FALSE);
SELECT setval('link_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM link_attribute_type), 0) + 1, FALSE);
SELECT setval('link_type_id_seq', COALESCE((SELECT MAX(id) FROM link_type), 0) + 1, FALSE);
SELECT setval('editor_collection_id_seq', COALESCE((SELECT MAX(id) FROM editor_collection), 0) + 1, FALSE);
SELECT setval('editor_collection_type_id_seq', COALESCE((SELECT MAX(id) FROM editor_collection_type), 0) + 1, FALSE);
SELECT setval('editor_oauth_token_id_seq', COALESCE((SELECT MAX(id) FROM editor_oauth_token), 0) + 1, FALSE);
SELECT setval('medium_id_seq', COALESCE((SELECT MAX(id) FROM medium), 0) + 1, FALSE);
SELECT setval('medium_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM medium_attribute_type), 0) + 1, FALSE);
SELECT setval('medium_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM medium_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('medium_attribute_id_seq', COALESCE((SELECT MAX(id) FROM medium_attribute), 0) + 1, FALSE);
SELECT setval('medium_cdtoc_id_seq', COALESCE((SELECT MAX(id) FROM medium_cdtoc), 0) + 1, FALSE);
SELECT setval('medium_format_id_seq', COALESCE((SELECT MAX(id) FROM medium_format), 0) + 1, FALSE);
SELECT setval('mood_id_seq', COALESCE((SELECT MAX(id) FROM mood), 0) + 1, FALSE);
SELECT setval('mood_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM mood_alias_type), 0) + 1, FALSE);
SELECT setval('mood_alias_id_seq', COALESCE((SELECT MAX(id) FROM mood_alias), 0) + 1, FALSE);
SELECT setval('place_id_seq', COALESCE((SELECT MAX(id) FROM place), 0) + 1, FALSE);
SELECT setval('place_alias_id_seq', COALESCE((SELECT MAX(id) FROM place_alias), 0) + 1, FALSE);
SELECT setval('place_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM place_alias_type), 0) + 1, FALSE);
SELECT setval('place_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM place_attribute_type), 0) + 1, FALSE);
SELECT setval('place_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM place_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('place_attribute_id_seq', COALESCE((SELECT MAX(id) FROM place_attribute), 0) + 1, FALSE);
SELECT setval('place_type_id_seq', COALESCE((SELECT MAX(id) FROM place_type), 0) + 1, FALSE);
SELECT setval('replication_control_id_seq', COALESCE((SELECT MAX(id) FROM replication_control), 0) + 1, FALSE);
SELECT setval('recording_id_seq', COALESCE((SELECT MAX(id) FROM recording), 0) + 1, FALSE);
SELECT setval('recording_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM recording_alias_type), 0) + 1, FALSE);
SELECT setval('recording_alias_id_seq', COALESCE((SELECT MAX(id) FROM recording_alias), 0) + 1, FALSE);
SELECT setval('recording_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM recording_attribute_type), 0) + 1, FALSE);
SELECT setval('recording_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM recording_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('recording_attribute_id_seq', COALESCE((SELECT MAX(id) FROM recording_attribute), 0) + 1, FALSE);
SELECT setval('release_id_seq', COALESCE((SELECT MAX(id) FROM release), 0) + 1, FALSE);
SELECT setval('release_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM release_alias_type), 0) + 1, FALSE);
SELECT setval('release_alias_id_seq', COALESCE((SELECT MAX(id) FROM release_alias), 0) + 1, FALSE);
SELECT setval('release_raw_id_seq', COALESCE((SELECT MAX(id) FROM release_raw), 0) + 1, FALSE);
SELECT setval('release_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM release_attribute_type), 0) + 1, FALSE);
SELECT setval('release_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM release_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('release_attribute_id_seq', COALESCE((SELECT MAX(id) FROM release_attribute), 0) + 1, FALSE);
SELECT setval('release_label_id_seq', COALESCE((SELECT MAX(id) FROM release_label), 0) + 1, FALSE);
SELECT setval('release_packaging_id_seq', COALESCE((SELECT MAX(id) FROM release_packaging), 0) + 1, FALSE);
SELECT setval('release_status_id_seq', COALESCE((SELECT MAX(id) FROM release_status), 0) + 1, FALSE);
SELECT setval('release_group_id_seq', COALESCE((SELECT MAX(id) FROM release_group), 0) + 1, FALSE);
SELECT setval('release_group_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM release_group_alias_type), 0) + 1, FALSE);
SELECT setval('release_group_alias_id_seq', COALESCE((SELECT MAX(id) FROM release_group_alias), 0) + 1, FALSE);
SELECT setval('release_group_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM release_group_attribute_type), 0) + 1, FALSE);
SELECT setval('release_group_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM release_group_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('release_group_attribute_id_seq', COALESCE((SELECT MAX(id) FROM release_group_attribute), 0) + 1, FALSE);
SELECT setval('release_group_primary_type_id_seq', COALESCE((SELECT MAX(id) FROM release_group_primary_type), 0) + 1, FALSE);
SELECT setval('release_group_secondary_type_id_seq', COALESCE((SELECT MAX(id) FROM release_group_secondary_type), 0) + 1, FALSE);
SELECT setval('script_id_seq', COALESCE((SELECT MAX(id) FROM script), 0) + 1, FALSE);
SELECT setval('series_id_seq', COALESCE((SELECT MAX(id) FROM series), 0) + 1, FALSE);
SELECT setval('series_type_id_seq', COALESCE((SELECT MAX(id) FROM series_type), 0) + 1, FALSE);
SELECT setval('series_ordering_type_id_seq', COALESCE((SELECT MAX(id) FROM series_ordering_type), 0) + 1, FALSE);
SELECT setval('series_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM series_alias_type), 0) + 1, FALSE);
SELECT setval('series_alias_id_seq', COALESCE((SELECT MAX(id) FROM series_alias), 0) + 1, FALSE);
SELECT setval('series_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM series_attribute_type), 0) + 1, FALSE);
SELECT setval('series_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM series_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('series_attribute_id_seq', COALESCE((SELECT MAX(id) FROM series_attribute), 0) + 1, FALSE);
SELECT setval('tag_id_seq', COALESCE((SELECT MAX(id) FROM tag), 0) + 1, FALSE);
SELECT setval('track_id_seq', COALESCE((SELECT MAX(id) FROM track), 0) + 1, FALSE);
SELECT setval('track_raw_id_seq', COALESCE((SELECT MAX(id) FROM track_raw), 0) + 1, FALSE);
SELECT setval('url_id_seq', COALESCE((SELECT MAX(id) FROM url), 0) + 1, FALSE);
SELECT setval('vote_id_seq', COALESCE((SELECT MAX(id) FROM vote), 0) + 1, FALSE);
SELECT setval('work_id_seq', COALESCE((SELECT MAX(id) FROM work), 0) + 1, FALSE);
SELECT setval('work_alias_type_id_seq', COALESCE((SELECT MAX(id) FROM work_alias_type), 0) + 1, FALSE);
SELECT setval('work_alias_id_seq', COALESCE((SELECT MAX(id) FROM work_alias), 0) + 1, FALSE);
SELECT setval('work_type_id_seq', COALESCE((SELECT MAX(id) FROM work_type), 0) + 1, FALSE);
SELECT setval('work_attribute_type_id_seq', COALESCE((SELECT MAX(id) FROM work_attribute_type), 0) + 1, FALSE);
SELECT setval('work_attribute_type_allowed_value_id_seq', COALESCE((SELECT MAX(id) FROM work_attribute_type_allowed_value), 0) + 1, FALSE);
SELECT setval('work_attribute_id_seq', COALESCE((SELECT MAX(id) FROM work_attribute), 0) + 1, FALSE);
