Commit facac869 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[GATE-151] Evaluated and redid sql files that had questionable settings in them.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6448 b35dd754-fafc-0310-a699-88a17e54d16e
parent bd83794b
CREATE TABLE gatewayRegistration ( CREATE TABLE gatewayRegistration (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
jid VARCHAR(255) NOT NULL, jid VARCHAR(255) NOT NULL,
transportType VARCHAR(15) NOT NULL, transportType VARCHAR(15) NOT NULL,
username VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL,
password VARCHAR(255), password VARCHAR(255),
nickname VARCHAR(255), nickname VARCHAR(255),
registrationDate BIGINT NOT NULL, registrationDate INTEGER NOT NULL,
lastLogin BIGINT, lastLogin INTEGER,
CONSTRAINT gatewayReg_pk PRIMARY KEY (registrationID) CONSTRAINT gatewayReg_pk PRIMARY KEY (registrationID)
); );
CREATE INDEX gatewayReg_jid_idx ON gatewayRegistration (jid); CREATE INDEX gatewayReg_jid_idx ON gatewayRegistration (jid);
CREATE INDEX gatewayReg_type_idx ON gatewayRegistration (transportType); CREATE INDEX gatewayReg_type_idx ON gatewayRegistration (transportType);
CREATE TABLE gatewayPseudoRoster ( CREATE TABLE gatewayPseudoRoster (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
username VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL,
nickname VARCHAR(255), nickname VARCHAR(255),
groups VARCHAR(255) groups VARCHAR(255)
......
CREATE TABLE gatewayRegistration ( CREATE TABLE gatewayRegistration (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
jid VARCHAR(255) NOT NULL, jid VARCHAR(255) NOT NULL,
transportType VARCHAR(15) NOT NULL, transportType VARCHAR(15) NOT NULL,
username VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL,
password VARCHAR(255), password VARCHAR(255),
nickname VARCHAR(255), nickname VARCHAR(255),
registrationDate BIGINT NOT NULL, registrationDate INTEGER NOT NULL,
lastLogin BIGINT, lastLogin INTEGER,
CONSTRAINT gatewayReg_pk PRIMARY KEY (registrationID) CONSTRAINT gatewayReg_pk PRIMARY KEY (registrationID)
); );
CREATE INDEX gatewayReg_jid_idx ON gatewayRegistration (jid); CREATE INDEX gatewayReg_jid_idx ON gatewayRegistration (jid);
CREATE INDEX gatewayReg_type_idx ON gatewayRegistration (transportType); CREATE INDEX gatewayReg_type_idx ON gatewayRegistration (transportType);
CREATE TABLE gatewayPseudoRoster ( CREATE TABLE gatewayPseudoRoster (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
username VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL,
nickname VARCHAR(255), nickname VARCHAR(255),
groups VARCHAR(255) groups VARCHAR(255)
......
CREATE TABLE gatewayRegistration ( CREATE TABLE gatewayRegistration (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
jid NVARCHAR(255) NOT NULL, jid NVARCHAR(255) NOT NULL,
transportType NVARCHAR(15) NOT NULL, transportType NVARCHAR(15) NOT NULL,
username NVARCHAR(255) NOT NULL, username NVARCHAR(255) NOT NULL,
password NVARCHAR(255), password NVARCHAR(255),
nickname NVARCHAR(255), nickname NVARCHAR(255),
registrationDate BIGINT NOT NULL, registrationDate INTEGER NOT NULL,
lastLogin BIGINT, lastLogin INTEGER,
CONSTRAINT gatewayReg_pk PRIMARY KEY (registrationID) CONSTRAINT gatewayReg_pk PRIMARY KEY (registrationID)
); );
CREATE INDEX gatewayReg_jid_idx ON gatewayRegistration (jid); CREATE INDEX gatewayReg_jid_idx ON gatewayRegistration (jid);
CREATE INDEX gatewayReg_type_idx ON gatewayRegistration (transportType); CREATE INDEX gatewayReg_type_idx ON gatewayRegistration (transportType);
CREATE TABLE gatewayPseudoRoster ( CREATE TABLE gatewayPseudoRoster (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
username NVARCHAR(255) NOT NULL, username NVARCHAR(255) NOT NULL,
nickname NVARCHAR(255), nickname NVARCHAR(255),
groups NVARCHAR(255) groups NVARCHAR(255)
......
...@@ -3,7 +3,7 @@ ALTER TABLE gatewayRegistration ADD COLUMN nickname VARCHAR(255); ...@@ -3,7 +3,7 @@ ALTER TABLE gatewayRegistration ADD COLUMN nickname VARCHAR(255);
-- Add pseudo roster table -- Add pseudo roster table
CREATE TABLE gatewayPseudoRoster ( CREATE TABLE gatewayPseudoRoster (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
username VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL,
nickname VARCHAR(255), nickname VARCHAR(255),
groups VARCHAR(255) groups VARCHAR(255)
......
...@@ -3,7 +3,7 @@ ALTER TABLE gatewayRegistration ADD COLUMN nickname VARCHAR(255); ...@@ -3,7 +3,7 @@ ALTER TABLE gatewayRegistration ADD COLUMN nickname VARCHAR(255);
-- Add pseudo roster table -- Add pseudo roster table
CREATE TABLE gatewayPseudoRoster ( CREATE TABLE gatewayPseudoRoster (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
username VARCHAR(255) NOT NULL, username VARCHAR(255) NOT NULL,
nickname VARCHAR(255), nickname VARCHAR(255),
groups VARCHAR(255) groups VARCHAR(255)
......
...@@ -3,7 +3,7 @@ ALTER TABLE gatewayRegistration ADD nickname NVARCHAR(255); ...@@ -3,7 +3,7 @@ ALTER TABLE gatewayRegistration ADD nickname NVARCHAR(255);
/* Add pseudo roster table */ /* Add pseudo roster table */
CREATE TABLE gatewayPseudoRoster ( CREATE TABLE gatewayPseudoRoster (
registrationID BIGINT NOT NULL, registrationID INTEGER NOT NULL,
username NVARCHAR(255) NOT NULL, username NVARCHAR(255) NOT NULL,
nickname NVARCHAR(255), nickname NVARCHAR(255),
groups NVARCHAR(255) groups NVARCHAR(255)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment