Services/Sync/Server/Archived/0.5/Setup/Migration: Difference between revisions

< Services‎ | Sync‎ | Server‎ | Archived
(Created page with '= Migrating from Weave Server 0.3 to 0.5 = The following changes are required to move from 0.3 to 0.5. These changes are backwards compatible - you can continue to run 0.3 code …')
 
 
(10 intermediate revisions by one other user not shown)
Line 1: Line 1:
[https://wiki.mozilla.org/Labs/Weave/0.5/Setup/Storage Full setup instructions]
= Migrating from Weave Server 0.3 to 0.5 =
= Migrating from Weave Server 0.3 to 0.5 =


Line 10: Line 12:


Alias /misc/1/captcha_html <path to server>/server/misc/1/captcha.php
Alias /misc/1/captcha_html <path to server>/server/misc/1/captcha.php
== Constants files ==
The following three constants files need to be edited:
server/0.5/default_constants.php (This one can be largely copied from the current weave_constants.php file)
server/user/1/weave_user_constants.php
server/misc/1/weave_misc_constants.php (if using captcha)
In weave_user_constants.php, edit the constant:
if (!defined('WEAVE_REGISTER_STORAGE_LOCATION')) { define('WEAVE_REGISTER_STORAGE_LOCATION', "yourserver"); }
If you don't host your install at the standard (/0.5) location, you'll need to set that to yourserver/prefix where prefix is whatever you configured apache to respond to before the /0.5


== Mysql ==
== Mysql ==
Line 21: Line 39:
alter table wbo add index predecessorindex (`username`,`collection`,`predecessorid`);
alter table wbo add index predecessorindex (`username`,`collection`,`predecessorid`);


(if you have a particularly old server, you might also need alter table users add column location text)


== SQLite ==
== SQLite ==
Line 30: Line 49:
alter table wbo add column payload_size int;
alter table wbo add column payload_size int;


alter table wbo add index weightindex (`username`,`collection`,`sortindex`);
create index weightindex on wbo (`collection`,`sortindex`);
 
(if you have a particularly old server, you might also need alter table users add column location text)
 
==Editing the Client==
In about:config, set extensions.weave.ServerUrl to https://servername/user

Latest revision as of 03:11, 12 July 2010

Full setup instructions

Migrating from Weave Server 0.3 to 0.5

The following changes are required to move from 0.3 to 0.5. These changes are backwards compatible - you can continue to run 0.3 code on the 0.5 database.

You will need to add the Apache alias to enable 0.5:

Alias /0.5 <path to server>/server/0.5/index.php

Alias /user/1 <path to server>/server/user/1/index.php

Alias /misc/1/captcha_html <path to server>/server/misc/1/captcha.php

Constants files

The following three constants files need to be edited:

server/0.5/default_constants.php (This one can be largely copied from the current weave_constants.php file)

server/user/1/weave_user_constants.php

server/misc/1/weave_misc_constants.php (if using captcha)

In weave_user_constants.php, edit the constant:

if (!defined('WEAVE_REGISTER_STORAGE_LOCATION')) { define('WEAVE_REGISTER_STORAGE_LOCATION', "yourserver"); }

If you don't host your install at the standard (/0.5) location, you'll need to set that to yourserver/prefix where prefix is whatever you configured apache to respond to before the /0.5

Mysql

alter table wbo add column predecessorid varbinary(64) default NULL after parentid;

alter table wbo add column payload_size int;

alter table wbo add index weightindex (`username`,`collection`,`sortindex`);

alter table wbo add index predecessorindex (`username`,`collection`,`predecessorid`);

(if you have a particularly old server, you might also need alter table users add column location text)

SQLite

You will need to do this to each user's storage table, so it may be easier to delete and add a user.

alter table wbo add column predecessorid text;

alter table wbo add column payload_size int;

create index weightindex on wbo (`collection`,`sortindex`);

(if you have a particularly old server, you might also need alter table users add column location text)

Editing the Client

In about:config, set extensions.weave.ServerUrl to https://servername/user