Commit db640228 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Renamed database column naturalLanguageRoom to naturalRoomName.


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