[openstreetmap/openstreetmap-website] Add a primary key to the changeset_tags table (PR #4279)

Tom Hughes notifications at github.com
Sun Oct 8 11:55:35 UTC 2023


This seems to be the only table that doesn't actually have a primary key defined in the database for some reason, instead we just lie to rails about it's existence.

It also improves our monkey patched primary key support for migrations to allow concurrent builds of primary keys and fix removal of primary keys which it seems has never worked.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4279

-- Commit Summary --

  * Improve support for primary keys in migrations
  * Add a primary key to the changeset_tags table

-- File Changes --

    M config/initializers/migrate.rb (42)
    A db/migrate/20231007141103_add_primary_key_to_changeset_tags.rb (13)
    M db/structure.sql (16)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4279.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4279.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4279
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4279 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231008/3fc79532/attachment.htm>


More information about the rails-dev mailing list