X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcore%2FSQL%2FSQLite%2Fversion%2F12%2Fupgrade_000_create_identity.sql;fp=src%2Fcore%2FSQL%2FSQLite%2Fversion%2F12%2Fupgrade_000_create_identity.sql;h=277c34e911476727e86b2b2784447ee7c99988c9;hb=3cf5c49e7753be48a994917fe898730add4292b1;hp=0000000000000000000000000000000000000000;hpb=e4fc79c07f5301ce2c7888e709ada0945b675c4f;p=quassel.git diff --git a/src/core/SQL/SQLite/version/12/upgrade_000_create_identity.sql b/src/core/SQL/SQLite/version/12/upgrade_000_create_identity.sql new file mode 100644 index 00000000..277c34e9 --- /dev/null +++ b/src/core/SQL/SQLite/version/12/upgrade_000_create_identity.sql @@ -0,0 +1,24 @@ +CREATE TABLE identity ( + identityid INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, + userid INTEGER NOT NULL, + identityname TEXT NOT NULL, + realname TEXT NOT NULL, + awaynick TEXT, + awaynickenabled INTEGER NOT NULL DEFAULT 0, -- BOOL + awayreason TEXT, + awayreasonenabled INTEGER NOT NULL DEFAULT 0, -- BOOL + autoawayenabled INTEGER NOT NULL DEFAULT 0, -- BOOL + autoawaytime INTEGER NOT NULL, + autoawayreason TEXT, + autoawayreasonenabled INTEGER NOT NULL DEFAULT 0, -- BOOL + detachawayenabled INTEGER NOT NULL DEFAULT 0, -- BOOL + detachawayreason TEXT, + detachawayreasonenabled INTEGER NOT NULL DEFAULT 0, -- BOOL + ident TEXT, + kickreason TEXT, + partreason TEXT, + quitreason TEXT, + sslcert BLOB, + sslkey BLOB, + UNIQUE (userid, identityname) +)