Commit 31a94f45 authored by Florian Kinder's avatar Florian Kinder Committed by daryl herzmann

gojara Fixed ofGojaraSessions missing after install (#889)

* Fixed ofGojaraSessions missing after install

* Bump patch version

* update gojara changelog
parent 02093e1c
......@@ -44,6 +44,11 @@
GoJara Plugin Changelog
</h1>
<p><b>2.2.1</b> -- November 17, 2017</p>
<ul>
<li>Correct missing table only found in upgrade scripts</li>
</ul>
<p><b>2.2.0</b> -- October 12, 2015</p>
<ul>
<li>[<a href='http://www.igniterealtime.org/issues/browse/OF-953'>OF-953</a>] - Updated JSP libraries.</li>
......
......@@ -9,8 +9,8 @@
<description>XEP-0321: Remote Roster Management support
</description>
<author>Holger Bergunde / Daniel Henninger / Axel-F. Brand</author>
<version>2.2.0</version>
<date>10/12/2015</date>
<version>2.2.1</version>
<date>11/17/2017</date>
<databaseKey>gojara</databaseKey>
<databaseVersion>1</databaseVersion>
<minServerVersion>4.0.0</minServerVersion>
......
-- 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);
CREATE TABLE ofGojaraStatistics (
logID bigint(20) NOT NULL AUTO_INCREMENT,
......
-- 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);
CREATE TABLE ofGojaraStatistics (
logID Integer Identity NOT NULL,
......
-- Create SessionEntry
CREATE TABLE ofGojaraSessions (
username text NOT NULL,
transport text NOT NULL,
lastActivity bigint(20) NOT NULL,
PRIMARY KEY (username(255), transport(255))
);
CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
CREATE TABLE ofGojaraStatistics (
logID bigint(20) NOT NULL AUTO_INCREMENT,
......
-- 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);
CREATE TABLE ofGojaraStatistics (
logID NUMBER(10) NOT NULL AUTO_INCREMENT,
......
-- 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);
CREATE TABLE ofGojaraStatistics (
logID bigserial NOT NULL,
messageDate bigint NOT NULL,
......@@ -8,5 +17,4 @@ CREATE TABLE ofGojaraStatistics (
PRIMARY KEY (logID)
);
INSERT INTO ofVersion (name, version) VALUES ('gojara', 1);
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username varchar(max) NOT NULL,
transport varchar(max) NOT NULL,
lastActivity bigint(20) NOT NULL,
PRIMARY KEY (username, transport)
);
CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
CREATE TABLE ofGojaraStatistics (
logID bigint(20) NOT NULL AUTO_INCREMENT,
messageDate bigint(20) NOT NULL,
messageType tinytext NOT NULL,
fromJID text NOT NULL,
toJID text NOT NULL,
component text NOT NULL,
fromJID varchar(max) NOT NULL,
toJID varchar(max) NOT NULL,
component varchar(max) NOT NULL,
PRIMARY KEY (logID)
);
......
-- 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);
CREATE TABLE ofGojaraStatistics (
logID bigint(20) NOT NULL AUTO_INCREMENT,
......
-- Create SessionEntry
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username VARCHAR(255) NOT NULL,
transport VARCHAR(255) NOT NULL,
......
-- Create SessionEntry
-- Create SessionEntry
CREATE TABLE ofGojaraSessions (
username VARCHAR(255) NOT NULL,
transport VARCHAR(255) NOT NULL,
......
-- Create SessionEntry
-- Create SessionEntry
CREATE TABLE ofGojaraSessions (
username text NOT NULL,
transport text NOT NULL,
......
-- Create SessionEntry
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username VARCHAR2(255) NOT NULL,
transport VARCHAR2(255) NOT NULL,
......
-- Create SessionEntry
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username varchar(255) NOT NULL,
transport varchar(255) NOT NULL,
......
-- Create SessionEntry
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username text NOT NULL,
transport text NOT NULL,
username varchar(max) NOT NULL,
transport varchar(max) NOT NULL,
lastActivity bigint(20) NOT NULL,
PRIMARY KEY (username, transport)
);
......@@ -9,4 +9,3 @@ CREATE INDEX ofGojara_lastActivity_idx ON ofGojaraSessions(lastActivity);
-- Update database version
UPDATE ofVersion SET version=1 WHERE name = 'gojara';
-- Create SessionEntry
-- Create SessionEntry
CREATE TABLE ofGojaraSessions(
username text NOT NULL,
transport text NOT NULL,
......
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