Files
www.gittip.com/branch.sql
T
2013-04-10 20:24:41 -04:00

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);