openstreetmap-website/db/migrate
Andy Allan 367fa44a74 Migrate some sequences to use bigints
These primary keys were converted to bigints in migrations, but the
sequences were left unmentioned. If the original migrations are run on
postgresql 10.0+, then this leads to a mismatch in column types vs sequence
types. This migration fixes these mismatches.

If the original migrations were run on postgresql < 10, all sequences were
bigints anyway, and this migration is a no-op.

If the sequence is a bigint, then postgresql doesn't output that fact in the
statement dump.

Refs #4298
2023-12-06 14:54:12 +00:00
..
001_create_osm_db.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
002_cleanup_osm_db.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
003_sql_session_store_setup.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
004_user_enhancements.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
005_tile_tracepoints.rb Remove tile_for_point SQL functions 2022-12-07 17:22:50 +00:00
006_tile_nodes.rb Remove tile_for_point SQL functions 2022-12-07 17:22:50 +00:00
007_add_relations.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
008_remove_segments.rb Fix new rubocop warnings 2021-06-29 18:29:00 +01:00
008_remove_segments_helper.cc added tagging of two-node ways created from tagged or unwayed segments. untested. 2007-09-26 09:54:49 +00:00
009_way_nodes_node_idx.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
010_diary_comments.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
011_add_user_image.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
012_add_admin_flag.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
013_add_email_valid.rb Fix rubocop warnings 2019-11-27 11:47:16 +00:00
014_add_new_email.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
015_add_user_visible.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
016_add_creation_ip.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
017_add_gpx_indexes.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
018_create_acls.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
019_add_timestamp_indexes.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
020_populate_node_tags_and_remove.rb Fix new rubocop warnings 2021-06-29 18:29:00 +01:00
020_populate_node_tags_and_remove_helper.c Merge 12304:14009 from trunk. 2009-03-08 13:02:37 +00:00
021_move_to_innodb.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
022_key_constraints.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
023_add_changesets.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
024_order_relation_members.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
025_add_end_time_to_changesets.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
026_add_changeset_user_index.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
027_add_changeset_indexes.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
028_add_more_changeset_indexes.rb Automatically enable the btree_gist extension 2021-03-10 18:24:36 +00:00
029_add_user_foreign_keys.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
030_add_foreign_keys.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
031_create_countries.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
032_add_user_locale.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
033_change_diary_entries_language.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
034_create_languages.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
035_change_user_locale.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
036_add_visible_to_message.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
037_add_sender_visible_to_message.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
038_add_message_sender_index.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
039_add_more_controls_to_gpx_files.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
040_create_oauth_tables.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
041_add_fine_o_auth_permissions.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
042_add_foreign_keys_to_oauth_tables.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
043_add_referer_to_user_token.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
044_create_user_roles.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
045_create_user_blocks.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
046_alter_user_roles_and_blocks.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
047_add_visible_to_diaries.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
048_add_diary_creation_indexes.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
049_improve_changeset_user_index.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
050_add_user_index_to_diary_comments.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
051_add_status_to_user.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
052_add_contributor_terms_to_user.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
053_add_map_bug_tables.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
054_refactor_map_bug_tables.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
055_change_map_bug_comment_type.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
056_add_date_closed.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
057_add_map_bug_comment_event.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
20100513171259_add_user_date_index_to_changeset.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20100516124737_add_open_id.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20100910084426_add_callback_to_oauth_tokens.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20101114011429_add_editor_preference_to_user.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20110322001319_add_terms_seen_to_user.rb Fix rubocop warnings 2019-11-27 11:47:16 +00:00
20110508145337_cleanup_bug_tables.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20110521142405_rename_bugs_to_notes.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
20110925112722_rename_ids.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20111116184519_update_oauth.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20111212183945_add_lowercase_user_indexes.rb Drop monkey patch that is no longer required 2021-05-10 18:52:34 +01:00
20120123184321_switch_to_paperclip.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20120208122334_merge_acl_address_and_mask.rb Fix new rubocop warnings 2023-12-05 18:13:13 +00:00
20120208194454_add_domain_to_acl.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20120214210114_add_text_format.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
20120219161649_add_user_image_fingerprint.rb Don't try and add fingerprints for user images 2019-07-17 18:49:09 +01:00
20120318201948_create_redactions.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
20120328090602_drop_session_table.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
20120404205604_add_user_and_description_to_redaction.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
20120808231205_add_counter_caches.rb Fix rubocop warnings 2019-11-27 11:47:16 +00:00
20121005195010_add_diary_entry_counter_caches.rb Fix rubocop warnings 2019-11-27 11:47:16 +00:00
20121012044047_add_image_use_gravatar_to_users.rb Fix rubocop warnings 2019-11-27 11:47:16 +00:00
20121119165817_drop_nearby_place_from_notes.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20121202155309_remove_author_name_from_note_comment.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20121203124841_change_note_address_to_inet.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20130328184137_add_write_notes_permission.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20131212124700_add_created_at_index_to_note_comments.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20140115192822_add_text_index_to_note_comments.rb Drop monkey patch that is no longer required 2021-05-10 18:52:34 +01:00
20140117185510_drop_countries.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20140210003018_add_user_image_content_type.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20140507110937_create_changeset_comments.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
20140519141742_add_join_table_between_users_and_changesets.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
20150110152606_change_default_formats.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20150111192335_subscribe_old_changesets.rb Replace migrations that rely on models with rake tasks 2019-07-17 18:55:15 +01:00
20150222101847_rename_openid_url.rb Fix rubocop warnings 2019-11-27 11:47:16 +00:00
20150818224516_set_default_gravatar_to_false_for_privacy.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20160822153055_create_issues_and_reports.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
20161002153425_add_join_table_between_users_and_diary_entries.rb Switch to using the zeitwork autoloader 2020-12-30 20:30:21 +00:00
20161011010929_subscribe_authors_to_diary_entries.rb Replace migrations that rely on models with rake tasks 2019-07-17 18:55:15 +01:00
20170222134109_add_user_indexes.rb Use rails 4.2 defaults for older migrations 2019-04-24 11:14:05 +01:00
20180204153242_tile_users.rb Remove tile_for_point SQL functions 2022-12-07 17:22:50 +00:00
20181020114000_add_user_tou_agreed.rb Add links to the ToU and include them in signup 2019-05-13 16:52:18 +02:00
20181031113522_create_delayed_jobs.rb Set up Delayed Job as the backend for Active Job 2018-10-31 15:31:32 +01:00
20190518115041_add_acl_indexes.rb Add some extra indexes for ACL lookups 2019-05-18 12:57:31 +01:00
20190623093642_add_mx_acls.rb Allow signups to be blocked by MX host 2019-06-23 11:21:03 +01:00
20190702193519_create_active_storage_tables.rb Add support for Active Storage attachments 2019-07-09 19:17:29 +01:00
20190716173946_remove_user_images.rb Drop old user image columns 2019-07-17 19:12:30 +01:00
20191120140058_remove_nearby_from_users.rb Remove the users.nearby column 2019-11-20 15:07:42 +01:00
20201004105659_create_doorkeeper_tables.rb Update to rails 7.0.2.2 2022-02-16 14:26:57 +00:00
20201006213836_add_author_index_to_changeset_comments.rb Index changeset comments by author and date 2020-10-06 22:42:44 +01:00
20201006220807_add_changeset_index_to_changeset_comments.rb Index changeset comments by changeset and date 2020-10-06 23:10:52 +01:00
20201214144017_expand_nonce_id.rb Fix new rubocop warnings 2021-12-28 19:47:51 +00:00
20210510083027_add_service_name_to_active_storage_blobs.active_storage.rb Update to rails 6.1.3.2 2021-05-12 18:49:21 +01:00
20210510083028_create_active_storage_variant_records.active_storage.rb Update to rails 7.0.2.2 2022-02-16 14:26:57 +00:00
20210511104518_add_time_to_friendships.rb Add rate limiting to user friendships 2021-05-11 12:10:36 +01:00
20211216185316_remove_not_null_on_active_storage_blobs_checksum.active_storage.rb Update to rails 7.0.2.2 2022-02-16 14:26:57 +00:00
20220201183346_add_author_index_to_note_comments.rb Index note comments by author and date 2022-02-01 18:48:18 +00:00
20220223140543_remove_id_defaults.rb Remove default values from id columns 2022-02-23 15:22:37 +00:00
20230816135800_use_microsoft_graph.rb Change provider name to "microsoft" 2023-08-20 10:19:30 +01:00
20230825162137_restore_author_index_to_changeset_comments.rb Add rate limiting for changeset comments 2023-08-25 19:53:04 +01:00
20230830115219_create_doorkeeper_openid_connect_tables.rb Add unconfigured doorkeeper-openid_connect 2023-10-03 18:53:09 +01:00
20230830115220_validate_create_doorkeeper_openid_connect_tables.rb Add unconfigured doorkeeper-openid_connect 2023-10-03 18:53:09 +01:00
20231007141103_add_primary_key_to_changeset_tags.rb Add a primary key to the changeset_tags table 2023-10-08 12:33:54 +01:00
20231010194809_correct_relation_members_primary_key.rb Build new relation member indexes concurrently 2023-10-26 19:58:11 +01:00
20231029151516_add_importer_role.rb Switch to using native rails support for managing Postgres enumerations 2023-11-15 18:25:05 +00:00
20231101222146_api_rate_limit.rb Add support for per-user limits on the rate changes can be made 2023-11-02 08:59:57 +00:00
20231117170422_add_closed_at_index_to_changesets.rb Add earliest allowed deletion time to user model 2023-11-22 17:02:48 +03:00
20231206141457_alter_sequences_bigint.rb Migrate some sequences to use bigints 2023-12-06 14:54:12 +00:00