Commit 92b74a72 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Changed column name "naturalRoomName" to "naturalName".


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@230 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5ef542df
...@@ -150,7 +150,7 @@ CREATE TABLE mucRoom ( ...@@ -150,7 +150,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalRoomName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -152,7 +152,7 @@ CREATE TABLE mucRoom ( ...@@ -152,7 +152,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalRoomName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -137,7 +137,7 @@ CREATE TABLE mucRoom ( ...@@ -137,7 +137,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalRoomName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
canChangeSubject TINYINT NOT NULL, canChangeSubject TINYINT NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -172,7 +172,7 @@ CREATE TABLE mucRoom( ...@@ -172,7 +172,7 @@ CREATE TABLE mucRoom(
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR2(50) NOT NULL, name VARCHAR2(50) NOT NULL,
naturalRoomName VARCHAR2(255) NOT NULL, naturalName VARCHAR2(255) NOT NULL,
description VARCHAR2(255), description VARCHAR2(255),
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -174,7 +174,7 @@ CREATE TABLE mucRoom ( ...@@ -174,7 +174,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalRoomName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -174,7 +174,7 @@ CREATE TABLE mucRoom ( ...@@ -174,7 +174,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name NVARCHAR(50) NOT NULL, name NVARCHAR(50) NOT NULL,
naturalRoomName NVARCHAR(255) NOT NULL, naturalName NVARCHAR(255) NOT NULL,
description NVARCHAR(255), description NVARCHAR(255),
canChangeSubject INT NOT NULL, canChangeSubject INT NOT NULL,
maxUsers INT NOT NULL, maxUsers INT NOT NULL,
......
...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom ( ...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalRoomName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom ( ...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalRoomName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom ( ...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalRoomName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
canChangeSubject TINYINT NOT NULL, canChangeSubject TINYINT NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom( ...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom(
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR2(50) NOT NULL, name VARCHAR2(50) NOT NULL,
naturalRoomName VARCHAR2(255) NOT NULL, naturalName VARCHAR2(255) NOT NULL,
description VARCHAR2(255), description VARCHAR2(255),
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom ( ...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL,
naturalRoomName VARCHAR(255) NOT NULL, naturalName VARCHAR(255) NOT NULL,
description VARCHAR(255), description VARCHAR(255),
canChangeSubject INTEGER NOT NULL, canChangeSubject INTEGER NOT NULL,
maxUsers INTEGER NOT NULL, maxUsers INTEGER NOT NULL,
......
...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom ( ...@@ -17,7 +17,7 @@ CREATE TABLE mucRoom (
creationDate CHAR(15) NOT NULL, creationDate CHAR(15) NOT NULL,
modificationDate CHAR(15) NOT NULL, modificationDate CHAR(15) NOT NULL,
name NVARCHAR(50) NOT NULL, name NVARCHAR(50) NOT NULL,
naturalRoomName NVARCHAR(255) NOT NULL, naturalName NVARCHAR(255) NOT NULL,
description NVARCHAR(255), description NVARCHAR(255),
canChangeSubject INT NOT NULL, canChangeSubject INT NOT NULL,
maxUsers INT NOT NULL, maxUsers INT NOT NULL,
......
...@@ -41,14 +41,14 @@ import org.jivesoftware.util.StringUtils; ...@@ -41,14 +41,14 @@ import org.jivesoftware.util.StringUtils;
public class MUCPersistenceManager { public class MUCPersistenceManager {
private static final String LOAD_ROOM_SURROGATES = private static final String LOAD_ROOM_SURROGATES =
"SELECT roomID, name, naturalRoomName, description, canChangeSubject, maxUsers, " + "SELECT roomID, name, naturalName, description, canChangeSubject, maxUsers, " +
"moderated, invitationRequired, canInvite, " + "moderated, invitationRequired, canInvite, " +
"password, canDiscoverJID, logEnabled, subject, rolesToBroadcast " + "password, canDiscoverJID, logEnabled, subject, rolesToBroadcast " +
"FROM mucRoom WHERE inMemory=0 and publicRoom=1"; "FROM mucRoom WHERE inMemory=0 and publicRoom=1";
private static final String GET_RESERVED_NAME = private static final String GET_RESERVED_NAME =
"SELECT nickname FROM mucMember WHERE roomID=? AND jid=?"; "SELECT nickname FROM mucMember WHERE roomID=? AND jid=?";
private static final String LOAD_ROOM = private static final String LOAD_ROOM =
"SELECT roomID, naturalRoomName, description, canChangeSubject, maxUsers, " + "SELECT roomID, naturalName, description, canChangeSubject, maxUsers, " +
"publicRoom, moderated, invitationRequired, canInvite, password, " + "publicRoom, moderated, invitationRequired, canInvite, password, " +
"canDiscoverJID, logEnabled, subject, rolesToBroadcast " + "canDiscoverJID, logEnabled, subject, rolesToBroadcast " +
"FROM mucRoom WHERE name=?"; "FROM mucRoom WHERE name=?";
...@@ -57,12 +57,12 @@ public class MUCPersistenceManager { ...@@ -57,12 +57,12 @@ public class MUCPersistenceManager {
private static final String LOAD_MEMBERS = private static final String LOAD_MEMBERS =
"SELECT jid, nickname FROM mucMember WHERE roomID=?"; "SELECT jid, nickname FROM mucMember WHERE roomID=?";
private static final String UPDATE_ROOM = private static final String UPDATE_ROOM =
"UPDATE mucRoom SET modificationDate=?, naturalRoomName=?, description=?, " + "UPDATE mucRoom SET modificationDate=?, naturalName=?, description=?, " +
"canChangeSubject=?, maxUsers=?, publicRoom=?, moderated=?, invitationRequired=?, " + "canChangeSubject=?, maxUsers=?, publicRoom=?, moderated=?, invitationRequired=?, " +
"canInvite=?, password=?, canDiscoverJID=?, logEnabled=?, rolesToBroadcast=?, " + "canInvite=?, password=?, canDiscoverJID=?, logEnabled=?, rolesToBroadcast=?, " +
"inMemory=? WHERE roomID=?"; "inMemory=? WHERE roomID=?";
private static final String ADD_ROOM = private static final String ADD_ROOM =
"INSERT INTO mucRoom (roomID, creationDate, modificationDate, name, naturalRoomName, " + "INSERT INTO mucRoom (roomID, creationDate, modificationDate, name, naturalName, " +
"description, canChangeSubject, maxUsers, publicRoom, moderated, invitationRequired, " + "description, canChangeSubject, maxUsers, publicRoom, moderated, invitationRequired, " +
"canInvite, password, canDiscoverJID, logEnabled, subject, rolesToBroadcast, " + "canInvite, password, canDiscoverJID, logEnabled, subject, rolesToBroadcast, " +
"lastActiveDate, inMemory) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"; "lastActiveDate, inMemory) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)";
......
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