Files
spsays-bff/migrations/0020_add_user_country.up.sql
T

7 lines
351 B
SQL

-- Account country (ISO-3166-1 alpha-2), shown in the profile "About this
-- account" panel. Captured best-effort at signup (Cloudflare's
-- CF-IPCountry header when present, else a GeoIP lookup on the client IP)
-- and editable by the user from the profile edit form. NULL until known.
ALTER TABLE users
ADD COLUMN IF NOT EXISTS country CHAR(2);