Commit 10202fa0 authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

[GATE-169] [GATE-155] [GATE-170] Fixed a bad decision regarding switching to integer from bigint.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6881 b35dd754-fafc-0310-a699-88a17e54d16e
parent 70522bfe
CREATE TABLE gatewayRegistration ( CREATE TABLE gatewayRegistration (
registrationID INTEGER NOT NULL, registrationID BIGINT 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 INTEGER NOT NULL, registrationDate BIGINT NOT NULL,
lastLogin INTEGER, lastLogin BIGINT,
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 INTEGER NOT NULL, registrationID BIGINT 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 INTEGER NOT NULL, registrationID BIGINT 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 INTEGER NOT NULL, registrationDate BIGINT NOT NULL,
lastLogin INTEGER, lastLogin BIGINT,
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 INTEGER NOT NULL, registrationID BIGINT 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 INTEGER NOT NULL, registrationID BIGINT 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 INTEGER NOT NULL, registrationDate BIGINT NOT NULL,
lastLogin INTEGER, lastLogin BIGINT,
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 INTEGER NOT NULL, registrationID BIGINT 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 INTEGER NOT NULL, registrationID BIGINT 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 INTEGER NOT NULL, registrationID BIGINT 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 INTEGER NOT NULL, registrationID BIGINT 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