]> ruin.nu Git - ndwebbie.git/blob - database/email.sql
Use left join so the view can be used before a user has entered coords, also update...
[ndwebbie.git] / database / email.sql
1 DROP TABLE IF EXISTS email_change;
2 CREATE TABLE email_change (
3         id TEXT PRIMARY KEY DEFAULT (md5((now() + random() * interval '100 year')::text)),
4         uid INTEGER NOT NULL REFERENCES users(uid),
5         email TEXT NOT NULL,
6         confirmed BOOLEAN NOT NULL DEFAULT false
7 );