core: Separate SQL current and upgrade scripts
[quassel.git] / src / core / SQL / PostgreSQL / setup_030_identity_nick.sql
1 CREATE TABLE identity_nick (
2        nickid serial PRIMARY KEY,
3        identityid integer NOT NULL REFERENCES identity (identityid) ON DELETE CASCADE,
4        nick varchar(64) NOT NULL,
5        UNIQUE (identityid, nick)
6 )