Upgrading from .11 with mods

Discussion of general topics related to the new version and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Forum rules
Discussion of general topics related to the new release and its place in the world. Don't discuss new features, report bugs, ask for support, et cetera. Don't use this to spam for other boards or attack those boards!
Post Reply
jflener
Registered User
Posts: 4
Joined: Fri Dec 10, 2004 7:37 pm

Upgrading from .11 with mods

Post by jflener »

Hello folks,
I have recently put together a 2.0.11 board and added the topic hierarchy mod. Since 2.2 will have its own topic heirarchy built in I'm wondering if users of the current heirarchy mod will be able to upgrade to 2.2 and keep the same forum structure.

Does upgrading boards only work for unmodded forums, or can some modded forums be upgraded as well?

Martin Blank
Registered User
Posts: 687
Joined: Sun May 11, 2003 11:17 am

Re: Upgrading from .11 with mods

Post by Martin Blank »

Upgrades to modded boards are not supported (with the possible exception of the Attachments mod -- I think that will be supported). If your only mods are to code and not database, it will probably go fairly smoothly. Database modifications may make things extremely difficult, though.
You can never go home again... but I guess you can shop there.

User avatar
Ptirhiik_
Registered User
Posts: 526
Joined: Tue Nov 18, 2003 8:35 am

Re: Upgrading from .11 with mods

Post by Ptirhiik_ »

I can already answer to that : if you have installed Categories Hierarchy 2.1.0, yes. If you have installed a previous version, no. The data structure of Categories Hierarchy 2.1.0 is very close to the one in phpBB 2.1 (at least at this time, but I am pretty sure it won't change enough when phpBB 2.2 will be released to make this assertion false :)), and the data migration from Categories Hierarchy 2.0.x is already built in the install script of the Categories Hierarchy 2.1.0.

In a more generic purpose, some rooms in the main migration process should allow the mods authors to provide upgrade scripts to the specifics data : as I understood, this is still on study and not definitive, but has been (and probably is still) considered by the dev. team.

Graham
Registered User
Posts: 1304
Joined: Tue Mar 19, 2002 7:11 pm
Location: UK

Re: Upgrading from .11 with mods

Post by Graham »

I think it is safe to say that the upgrade process will have support for a handful of MODs included in it - there have already been 2 mentioned; the Attachment MOD and the Birthday MOD.

Beyond those that are included, it will probably be down the the MOD author to provide assistance with upgrading that data, but the upgrade script will be written in such a way that this should be quite easy to do if they are able to map from field(s) in the database for their MOD to field(s) in the 2.2 database via a simple function.
"So Long, and Thanks for All the Fish"

Graham
Eeek, a blog!

jflener
Registered User
Posts: 4
Joined: Fri Dec 10, 2004 7:37 pm

Re: Upgrading from .11 with mods

Post by jflener »

Ptirhiik_ wrote:I can already answer to that : if you have installed Categories Hierarchy 2.1.0, yes.
I think I have verison 2.0.4 which seems to be the latest in the mod section. Where can I get 2.1.0? Should this be updated on the Mods page?

User avatar
naderman
Consultant
Posts: 1727
Joined: Sun Jan 11, 2004 2:11 am
Location: Berlin, Germany
Contact:

Re: Upgrading from .11 with mods

Post by naderman »

Wouldn't it be possible to convert all MODs which only add a column to the phpbb_users table by checking for additional columns, getting their type and converting them to a custom profile field. Maybe it could also ask which field type should be used, since guessing the field type from the DB column type isn't very exact. Well maybe the devs already thought of this ;-)

naderman

User avatar
olger901
Registered User
Posts: 536
Joined: Tue May 11, 2004 4:57 pm

Re: Upgrading from .11 with mods

Post by olger901 »

Well the solution is simple actually pretty simple if an upgrade fails, just look in the SQL code of the Hierarchy installation script and undo the changes the script made to the database. Your current forum with the modified code won't probaly work though but once you overwrite all files with phpBB 2.2 files and run the upgrade all should be fine.
-

User avatar
stubbers
Registered User
Posts: 406
Joined: Sat Oct 23, 2004 10:36 pm
Location: LoSt
Contact:

Re: Upgrading from .11 with mods

Post by stubbers »

Just a question for the Devs/Mods, will incompatible mods, and irritating rogue peices of code be destroyed in the upgrade script?

If no can you start from scratch and wipe all the PHP files and import a 2.0.11 database? All I want is the database.

Cheers,
Stubbers

User avatar
A_Jelly_Doughnut
Registered User
Posts: 1780
Joined: Wed Jun 04, 2003 4:23 pm

Re: Upgrading from .11 with mods

Post by A_Jelly_Doughnut »

You will be replacing all the files, so I would say that is a yes :)
A_Jelly_Doughnut

Martin Blank
Registered User
Posts: 687
Joined: Sun May 11, 2003 11:17 am

Re: Upgrading from .11 with mods

Post by Martin Blank »

One thing you might be able to do (and which I'll probably have to do) is to do a dump of the database schema for your current database, and compare it to the default 2.0.11 (or whichever version) schema. This will probably be easiest using diff or a related tool to see the changes, and then (after making a complete backup of your entire current database!) you will be able to alter whichever parts of the database may show possible signs of conflict.
You can never go home again... but I guess you can shop there.

Post Reply