X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2FSQL%2FPostgreSQL%2F18%2Fsetup_030_identity_nick.sql;fp=src%2Fcore%2FSQL%2FPostgreSQL%2F18%2Fsetup_030_identity_nick.sql;h=65fb5ecb16d769513cbee243cbc415335edb6614;hb=5221b0b4d044d214539a1932a7a2eefbe88e4a66;hp=0000000000000000000000000000000000000000;hpb=af787c6830e12c665572044db1beab65473607b9;p=quassel.git diff --git a/src/core/SQL/PostgreSQL/18/setup_030_identity_nick.sql b/src/core/SQL/PostgreSQL/18/setup_030_identity_nick.sql new file mode 100644 index 00000000..65fb5ecb --- /dev/null +++ b/src/core/SQL/PostgreSQL/18/setup_030_identity_nick.sql @@ -0,0 +1,6 @@ +CREATE TABLE identity_nick ( + nickid serial PRIMARY KEY, + identityid integer NOT NULL REFERENCES identity (identityid) ON DELETE CASCADE, + nick varchar(64) NOT NULL, + UNIQUE (identityid, nick) +)