combine gallery databases

Phoca Gallery - image gallery extension
carlpitcher
Phoca Member
Phoca Member
Posts: 11
Joined: 07 Apr 2020, 20:23

combine gallery databases

Post by carlpitcher »

In the documentation there's a section on moving a gallery from one site to another but my circumstance is slightly different. I have 2 sites, both with different galleries. There are no overlaps in category names and all images have descriptions. I want to move the gallery on site 1 and add it to the gallery on site 2. Your thoughts please? Thanks!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: combine gallery databases

Post by Jan »

Hi, the problem is, the upgrade (migration: export/import) works best when you import into empty database. Iporting data to existing data and joining them ist not so easy. In fact you do the same like it is described in upgrade/migrate articles: https://www.phoca.cz/documentation/86-j ... o-joomla-4 but you need to check the relations and/or fix them (when you paste items into empty database, then the relations like image - category are OK, but this is not valid when there are current data in database, because the relation numbers (ID of category, ID of images) move) :idea:

Jan
If you find Phoca extensions useful, please support the project
carlpitcher
Phoca Member
Phoca Member
Posts: 11
Joined: 07 Apr 2020, 20:23

Re: combine gallery databases

Post by carlpitcher »

Makes sense. Thanks Jan!
Post Reply