Is there a way to migrate guestbook 1.5.3 items to 2.0.4
I mean I have upgrated my joomla site from 1.5 to 1.7
Regards
Migrate From 1.5.3 to 2.0.4
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Migrate From 1.5.3 to 2.0.4
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 11 Jan 2012, 23:41
Re: Migrate From 1.5.3 to 2.0.4
Hi Jan, thanks for your great work, what a fantastic piece of software you made, I use it since years!
But now I have a question, I am also updating to 1.7 and now I am following your steps but now I read this:
---You need to set your own database prefix, in examples the jos_ is used but you should use your own database prefix (be aware, it can be different for both sites, in such case you need to overwrite prefix from backed up old site to prefix used on your new site).
Example:
Joomla! 1.5 used jos_ prefix
Joomla! 1.7 (1.6) will use notjos_ prefix
After backuping and before importing sql queries you need to replace all jos_ strings to notjos_ strings in stored backup file. Just open the phocagallery.sql or phocadownload.sql file and replace the prefix by the table names.--
How kan I change these prefix by the table names, I do not not how to open the sql file..
Thanks you.
But now I have a question, I am also updating to 1.7 and now I am following your steps but now I read this:
---You need to set your own database prefix, in examples the jos_ is used but you should use your own database prefix (be aware, it can be different for both sites, in such case you need to overwrite prefix from backed up old site to prefix used on your new site).
Example:
Joomla! 1.5 used jos_ prefix
Joomla! 1.7 (1.6) will use notjos_ prefix
After backuping and before importing sql queries you need to replace all jos_ strings to notjos_ strings in stored backup file. Just open the phocagallery.sql or phocadownload.sql file and replace the prefix by the table names.--
How kan I change these prefix by the table names, I do not not how to open the sql file..
Thanks you.
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Migrate From 1.5.3 to 2.0.4
Hi, in text editor (e.g. notepad++, see notepad++ documentation how to work with find replace function)
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 5
- Joined: 11 Jan 2012, 23:41
Re: Migrate From 1.5.3 to 2.0.4
Thanks for that!
-
- Phoca Member
- Posts: 13
- Joined: 08 Mar 2011, 19:34
Re: Migrate From 1.5.3 to 2.0.4
Hi Jan
There is a mistake in yout migration instructions:
UPDATE `jos_phocaguestbook_books` SET `language` = '*';
UPDATE `jos_phocaguestbook_items` SET `language` = '*';
There is a mistake in yout migration instructions:
It should be jos_phocaguestbook_books and jos_phocaguestbook_items instead:Phoca Guestbook Migration
See guide above, the database tables to export are:
jos_phocaguestbook_books
jos_phocaguestbook_items
There are no files and folders to export/import.
These sql queries should be run after database data import:
UPDATE `jos_phocadownload_books` SET `language` = '*';
UPDATE `jos_phocadownload_items` SET `language` = '*';
UPDATE `jos_phocaguestbook_books` SET `language` = '*';
UPDATE `jos_phocaguestbook_items` SET `language` = '*';
- Jan
- Phoca Hero
- Posts: 48739
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Migrate From 1.5.3 to 2.0.4
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 35
- Joined: 22 Oct 2008, 12:11
- Location: Tilburg, Holland
- Contact:
Re: Migrate From 1.5.3 to 2.0.4
I just did this migration of guestbook
https://www.phoca.cz/documents/50-phoca/ ... -joomla-17
(there is no link from the documentation or faqs).
but in the 1.5.3-version there is no column 'language'.
so first do
and
where sxgp is the prefix of the new version
https://www.phoca.cz/documents/50-phoca/ ... -joomla-17
(there is no link from the documentation or faqs).
Code: Select all
UPDATE `jos_phocaguestbook_books` SET `language` = '*';
UPDATE `jos_phocaguestbook_items` SET `language` = '*';
so first do
Code: Select all
ALTER TABLE `sxgp_phocaguestbook_books` ADD `language` VARCHAR( 7 ) NOT NULL
Code: Select all
ALTER TABLE `sxgp_phocaguestbook_items` ADD `language` VARCHAR( 7 ) NOT NULL
-
- Phoca Member
- Posts: 35
- Joined: 22 Oct 2008, 12:11
- Location: Tilburg, Holland
- Contact:
Re: Migrate From 1.5.3 to 2.0.4
and also this:
where 'sxgp' is your database pre-fix.
see this post viewtopic.php?f=2&t=19105#p74159
Code: Select all
ALTER TABLE `sxgp_phocaguestbook_items` ADD `alias` VARCHAR( 255 ) NOT NULL
see this post viewtopic.php?f=2&t=19105#p74159