-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OF-2954: Database install and update scripts
- Loading branch information
Showing
15 changed files
with
196 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE ofSpamReport ( | ||
reporter VARCHAR(1024) NOT NULL, | ||
reported VARCHAR(1024) NOT NULL, | ||
reason VARCHAR(255) NOT NULL, | ||
created BIGINT NOT NULL, | ||
raw LONG VARCHAR NOT NULL | ||
); | ||
CREATE INDEX ofSpamReport_created_reporter_id ON ofSpamReport (created, reporter); | ||
CREATE INDEX ofSpamReport_created_reported_id ON ofSpamReport (created, reported); | ||
|
||
UPDATE ofVersion SET version = 37 WHERE name = 'openfire'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE ofSpamReport ( | ||
reporter VARCHAR(1024) NOT NULL, | ||
reported VARCHAR(1024) NOT NULL, | ||
reason VARCHAR(255) NOT NULL, | ||
created BIGINT NOT NULL, | ||
raw LONGVARCHAR NOT NULL | ||
); | ||
CREATE INDEX ofSpamReport_created_reporter_id ON ofSpamReport (created, reporter); | ||
CREATE INDEX ofSpamReport_created_reported_id ON ofSpamReport (created, reported); | ||
|
||
UPDATE ofVersion SET version = 37 WHERE name = 'openfire'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE ofSpamReport ( | ||
reporter VARCHAR(1024) NOT NULL, | ||
reported VARCHAR(1024) NOT NULL, | ||
reason VARCHAR(255) NOT NULL, | ||
created BIGINT NOT NULL, | ||
raw TEXT NOT NULL, | ||
INDEX ofSpamReport_created_reporter_id (created, reporter), | ||
INDEX ofSpamReport_created_reported_id (created, reported) | ||
); | ||
|
||
UPDATE ofVersion SET version = 37 WHERE name = 'openfire'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE ofSpamReport ( | ||
reporter VARCHAR2(1024) NOT NULL, | ||
reported VARCHAR2(1024) NOT NULL, | ||
reason VARCHAR2(255) NOT NULL, | ||
created INTEGER NOT NULL, | ||
"raw" CLOB NOT NULL | ||
); | ||
CREATE INDEX ofSpamReport_created_reporter_id ON ofSpamReport (created, reporter); | ||
CREATE INDEX ofSpamReport_created_reported_id ON ofSpamReport (created, reported); | ||
|
||
UPDATE ofVersion SET version = 37 WHERE name = 'openfire'; |
11 changes: 11 additions & 0 deletions
11
distribution/src/database/upgrade/37/openfire_postgresql.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE ofSpamReport ( | ||
reporter VARCHAR(1024) NOT NULL, | ||
reported VARCHAR(1024) NOT NULL, | ||
reason VARCHAR(255) NOT NULL, | ||
created BIGINT NOT NULL, | ||
raw TEXT NOT NULL | ||
); | ||
CREATE INDEX ofSpamReport_created_reporter_id ON ofSpamReport (created, reporter); | ||
CREATE INDEX ofSpamReport_created_reported_id ON ofSpamReport (created, reported); | ||
|
||
UPDATE ofVersion SET version = 37 WHERE name = 'openfire'; |
11 changes: 11 additions & 0 deletions
11
distribution/src/database/upgrade/37/openfire_sqlserver.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE ofSpamReport ( | ||
reporter VARCHAR(1024) NOT NULL, | ||
reported VARCHAR(1024) NOT NULL, | ||
reason VARCHAR(255) NOT NULL, | ||
created BIGINT NOT NULL, | ||
raw NVARCHAR(MAX) NOT NULL | ||
); | ||
CREATE INDEX ofSpamReport_created_reporter_id ON ofSpamReport (created, reporter); | ||
CREATE INDEX ofSpamReport_created_reported_id ON ofSpamReport (created, reported); | ||
|
||
UPDATE ofVersion SET version = 37 WHERE name = 'openfire'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE ofSpamReport ( | ||
reporter NVARCHAR(1024) NOT NULL, | ||
reported NVARCHAR(1024) NOT NULL, | ||
reason NVARCHAR(255) NOT NULL, | ||
created INTEGER NOT NULL, | ||
"raw" LONG VARCHAR NOT NULL | ||
); | ||
CREATE INDEX ofSpamReport_created_reporter_id ON ofSpamReport (created, reporter); | ||
CREATE INDEX ofSpamReport_created_reported_id ON ofSpamReport (created, reported); | ||
|
||
UPDATE ofVersion SET version = 37 WHERE name = 'openfire'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters