Files
2013-04-10 21:24:11 -04:00

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