Taken from http://www.igniterealtime.org/forum/thread.jspa?messageID=131628𠈬
EDIT: Err, I’‘m not sure how to make a DB backup, but it’'d probably be best to make one before attempting this
Hi Guys,
I was able to manually update the DB to get 1.2.0beta2 working on the
embedded db last night. These are the basic steps I followed:
-
Shut down wildfire
-
Went into the HSQL Database Manager (embedded db admin interface)
(Run /opt/openfire/bin/extra/embedded-db-viewer.sh)
- Dropped the phone databases from an old asterisk-im install (I
didn’'t have any configuration data to save). For me, I had to "DROP
TABLE phoneuser" and “DROP TABLE phonedevice”- PLEASE NOTE this will
probably DELETE all your current asterisk-im settings.)
- Tried to run the MySQL Script, but errors were given stating that
the “unique” keyword was not supported (the script is in C:\Program
Files\Wildfire\plugins\asterisk-im\database on windows)
- Removed “unique” keyword (twice) from MySQL script, resulting in the
script below. You will also notice the last line from the MySQL script
is also missing (to be manually updated in step 8)
create table phoneServer (
serverID bigint not null,
serverName varchar(255) not null,
hostname varchar(255) not null,
port int not null,
username varchar(255) not null,
password varchar(255) not null,
primary key(serverID)
);
create table phoneDevice (
deviceID bigint not null,
device varchar(255) not null,
extension varchar(255) not null,
callerId varchar(255),
isPrimary int not null,
userID bigint,
serverID bigint not null,
primary key (deviceID)
);
create table phoneUser (
userID bigint not null,
username varchar(255) not null,
primary key (userID)
);
-
Ran the script to add the updated tables back
-
Ran “SELECT * from JIVEVERSION” and noticed the version of
‘‘asterisk-im’’ was set to “0” (for me atleast, since I was using an old
version)
- Ran the following SQL to manually update ‘‘asterisk-im’’ to version 2
(to prevent wildfire attempting to upgrade the DB automatically, since
we just did it manually):
UPDATE JIVEVERSION
SET VERSION=2
WHERE NAME=’‘asterisk-im’’ (must be single-quotes here)
9- Verified version updated correctly by running “SELECT * FROM JIVEVERSION”
10- Close out of HSQL Database Manager
11- Wait a minute and restart Wildfire
12- Asterisk-im 1.2.0b2 should work now!