Different s9y versions, same database?

Discussion corner for Developers of Serendipity.
Post Reply
User avatar
Don Chambers
Regular
Posts: 3628
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA
Contact:

Different s9y versions, same database?

Post by Don Chambers » Wed Feb 11, 2015 2:43 am

Can I use different versions of s9y from the same common database? I will use unique table prefixes for each install, but want to use a single database for different versions, like 1.6, 1.7, 2 stable, and 2 devel.

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Different s9y versions, same database?

Post by garvinhicking » Wed Feb 11, 2015 11:40 am

Hi!

Yes, that's no problem.

ACTUALLY you could even use a single database with a single DB prefix to power MULTIPLE s9y installations with the exact same content / plugin configuration, if you use those installations on distinct subdomains. However that only works properly when the DB structure of those s9y versions is identical, so you should be able to use 2.0 / 2.0.1 / 2.1.0 with an identical database, maybe even 1.7 - but 1.6 will be problematic.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
Don Chambers
Regular
Posts: 3628
Joined: Mon Feb 13, 2006 3:40 am
Location: Chicago, IL, USA
Contact:

Re: Different s9y versions, same database?

Post by Don Chambers » Wed Feb 11, 2015 5:26 pm

garvinhicking wrote:Hi!

Yes, that's no problem.

ACTUALLY you could even use a single database with a single DB prefix to power MULTIPLE s9y installations with the exact same content / plugin configuration, if you use those installations on distinct subdomains. However that only works properly when the DB structure of those s9y versions is identical, so you should be able to use 2.0 / 2.0.1 / 2.1.0 with an identical database, maybe even 1.7 - but 1.6 will be problematic.

Regards,
Garvin
As in sub1.example.com, sub2.example.com? Would example.com/sub1/ and example.com/sub2/ work?

User avatar
garvinhicking
Core Developer
Posts: 30014
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Different s9y versions, same database?

Post by garvinhicking » Thu Feb 12, 2015 6:36 pm

No, it would only work when the directories are the same ("/" as on a subdomain).
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

Post Reply