Files
spsays-bff/migrations/0022_add_user_sampradaya.up.sql
T

7 lines
386 B
SQL

-- Devotee's sampradāya (spiritual lineage). Every account defaults to the
-- Gaudiya sampradāya; the column is NOT NULL so the value is always
-- present. Stored as a lowercase code; the frontend maps it to a display
-- label. Existing rows are backfilled to 'gaudiya' by the DEFAULT.
ALTER TABLE users
ADD COLUMN IF NOT EXISTS sampradaya VARCHAR(32) NOT NULL DEFAULT 'gaudiya';