Commit 4945c72d authored by Axel Brand's avatar Axel Brand Committed by daeva

Added remaining DB Upgrade Settings for coming Gojara Upgrade

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@13670 b35dd754-fafc-0310-a699-88a17e54d16e
parent 7667c207
...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics ( ...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics (
PRIMARY KEY (logID) PRIMARY KEY (logID)
); );
INSERT INTO ofVersion (name, version) VALUES ('gojara', 0); INSERT INTO ofVersion (name, version) VALUES ('gojara', 1);
...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics ( ...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics (
PRIMARY KEY (logID) PRIMARY KEY (logID)
); );
INSERT INTO ofVersion (name, version) VALUES ('gojara', 0); INSERT INTO ofVersion (name, version) VALUES ('gojara', 1);
...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics ( ...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics (
PRIMARY KEY (logID) PRIMARY KEY (logID)
); );
INSERT INTO ofVersion (name, version) VALUES ('gojara', 0); INSERT INTO ofVersion (name, version) VALUES ('gojara', 1);
...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics ( ...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics (
PRIMARY KEY (logID) PRIMARY KEY (logID)
); );
INSERT INTO ofVersion (name, version) VALUES ('gojara', 0); INSERT INTO ofVersion (name, version) VALUES ('gojara', 1);
...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics ( ...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics (
PRIMARY KEY (logID) PRIMARY KEY (logID)
); );
INSERT INTO ofVersion (name, version) VALUES ('gojara', 0); INSERT INTO ofVersion (name, version) VALUES ('gojara', 1);
...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics ( ...@@ -10,4 +10,4 @@ CREATE TABLE ofGojaraStatistics (
PRIMARY KEY (logID) PRIMARY KEY (logID)
); );
INSERT INTO ofVersion (name, version) VALUES ('gojara', 0); INSERT INTO ofVersion (name, version) VALUES ('gojara', 1);
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username VARCHAR(255) NOT NULL,
transport VARCHAR(255) NOT NULL,
lastActivity BIGINT NOT NULL,
PRIMARY KEY(username, transport)
);
CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
-- Update database version
UPDATE ofVersion SET version=1 WHERE name = 'gojara';
\ No newline at end of file
-- Create SessionEntry
CREATE TABLE ofGojaraSessions (
username VARCHAR(255) NOT NULL,
transport VARCHAR(255) NOT NULL,
lastActivity BIGINT NOT NULL,
PRIMARY KEY (username, transport)
);
CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
-- Update database version
UPDATE ofVersion SET version=1 WHERE name = 'gojara';
\ No newline at end of file
-- Create SessionEntry
CREATE TABLE ofGojaraSessions (
username text NOT NULL,
transport text NOT NULL,
lastActivity bigint(20) NOT NULL,
PRIMARY KEY (username, transport)
);
CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
-- Update database version
UPDATE ofVersion SET version=1 WHERE name = 'gojara';
\ No newline at end of file
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username VARCHAR2(255) NOT NULL,
transport VARCHAR2(255) NOT NULL,
lastActivity NUMBER(10) NOT NULL,
PRIMARY KEY (username, transport)
);
CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
-- Update database version
UPDATE ofVersion SET version=1 WHERE name = 'gojara';
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username text NOT NULL,
transport text NOT NULL,
lastActivity bigint(20) NOT NULL,
PRIMARY KEY (username, transport)
);
CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
-- Update database version
UPDATE ofVersion SET version=1 WHERE name = 'gojara';
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username text NOT NULL,
transport text NOT NULL,
lastActivity bigint(20) NOT NULL,
PRIMARY KEY (username, transport)
);
CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
-- Update database version
UPDATE ofVersion SET version=1 WHERE name = 'gojara';
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