Back again.
I have migrated from phoca guestbook 1.5.3 till the latest version 3.0.0
I did everything with phpmyadmin and some sql statements
first install the latest (3.0.0.) phocaguestbook
create a new guestbook
find out which
catid this one has in my case it is
13
1 - I started with copy the old YOURPREFIX-VERSION-1.5.3_phocaguestbook_items from my joomla 1.5.X database to the new joomla 3 database.
2 - backup your YOURPREFIX-VERSION3_phocaguestbook_items from the new installed phoca 3.0.0
3 -
Code: Select all
INSERT `YOURPREFIX-VERSION3_phocaguestbook_items` ( id, catid, parent_id, lft, level, username, userid, email, homesite, ip, title, content,
date, published, checked_out, checked_out_time)
SELECT id+1 AS id, 10013 AS catid, 1 AS parent_id, ordering AS lft, 1 AS level, username, userid, email, homesite, ip, title,
content, date, published, checked_out, checked_out_time
FROM `YOURPREFIX-VERSION-1.5.3_phocaguestbook_items`
4 - UPDATE `YOURPREFIX-VERSION3_phocaguestbook_items` SET `language` = '*';
5 - UPDATE `YOURPREFIX-VERSION3_phocaguestbook_items` SET `catid` = '13';
so here some sql statements don with phpmyadmin:
6 - I had te renumber the LFT and RGT fields and don't forget that in the end this first entry must looking the same as you started EXEPT the RGT field!!!!
Code: Select all
create table migrate as
SELECT id
, @rowid:=@rowid+2 as rowid
, @rowid - 1 as lftnew
, @rowid as rgtnew
FROM YOURPREFIX-VERSION3_phocaguestbook_items
, (SELECT @rowid:=0) as init
ORDER BY id;
7 - then rebuild the lft with the previeus step:
Code: Select all
update YOURPREFIX-VERSION3_phocaguestbook_items
set lft=(select lftnew from migrate where migrate.id = YOURPREFIX-VERSION3_phocaguestbook_items.id);
8 - then rebuild the rgt
Code: Select all
update YOURPREFIX-VERSION3_phocaguestbook_items
set rgt=(select rgtnew from migrate where migrate.id = YOURPREFIX-VERSION3_phocaguestbook_items.id);
then you have to look at your last entry from the guestbook and update the FIRST record from rgt with that last record number + 1.
in a previous post I mentioned that the numbering was
this is not true it is:
Code: Select all
lft rgt
0 LATEST NUMBER + 1
1 2
3 4
5 6
7 8
Now it is working.