Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Require region codes are globally unique #621

Merged
merged 1 commit into from
Sep 22, 2020

Commits on Sep 22, 2020

  1. Require region codes are globally unique

    This is required for the ENX redirector, but we've also always made the
    assumption that these need to be globally unique.
    
    Note that this requires changing the column to citext (for
    case-insensitive matching) and to NULL out the default of '', since ''
    is a duplicate of ''.
    
    It also handles any existing duplicates by appending -N to them before
    applying the database-level unique constraint.
    sethvargo committed Sep 22, 2020
    Configuration menu
    Copy the full SHA
    b6b0791 View commit details
    Browse the repository at this point in the history