mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-05 23:30:19 +00:00
14 lines
356 B
PL/PgSQL
14 lines
356 B
PL/PgSQL
-------------------------------------------------------------------------------
|
|
-- https://github.com/gittip/www.gittip.com/issues/503
|
|
|
|
BEGIN;
|
|
|
|
ALTER TABLE participants ADD COLUMN username_lower text
|
|
NOT NULL DEFAULT '';
|
|
|
|
UPDATE participants SET username_lower = lower(username);
|
|
|
|
END;
|
|
|
|
ALTER TABLE participants ADD UNIQUE (username_lower);
|