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