Author |
Topic |
|
CptSternn
Starting Member
Ireland
17 Posts |
Posted - 06 April 2009 : 11:35:32
|
Is there an easy way to upgrade and keep your mods or do we have to upgrade, then go through and manually install each mod again? |
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 06 April 2009 : 11:37:31
|
You'll have to add them all again. You won't lose anything in the database but should run all the dbs files again anyway.
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
Edited by - Shaggy on 06 April 2009 12:44:48 |
|
|
Etymon
Advanced Member
United States
2385 Posts |
Posted - 06 April 2009 : 12:17:09
|
quote: Originally posted by Shaggy
You'll have to add them all again. You won't lose anything in the database but should run all the dbs files again anyway.
Well, there are some dbs files that DROP (delete, remove, destroy - whatever is easiest to understand) a table and then CREATE it again.
Before you run your dbs file, be sure to look at the code in the dbs file and remove the DROP area of the code if you want to preserve your data using that same table. That would be the area from the [DROP] to the [END] including the area in between ... something like this (Note: the word UPSIZE is a table name):
[DROP] UPSIZE [END]
If the table already exists, and your dbs is trying to [CREATE] it again, all you will get is an error when the dbs tries to recreate it. Trying to [CREATE] over an existing table is a lesser evil than trying to [DROP] one.
Also, you could end up with a double entry in your CONFIG_NEW table by running a dbs again. That's not horrible ... just an overhead. |
|
|
SiSL
Average Member
Turkey
671 Posts |
|
ruirib
Snitz Forums Admin
Portugal
26364 Posts |
Posted - 06 April 2009 : 12:34:58
|
If mods were to be added to a new code but old DB, of course NO dbs files SHOULD BE EXECUTED! The dbs files are to change the Db to have the mod working and it only needs to be done once! |
Snitz 3.4 Readme | Like the support? Support Snitz too |
|
|
Shaggy
Support Moderator
Ireland
6780 Posts |
Posted - 06 April 2009 : 12:44:33
|
Yeah, I was just coming back to delete my post; no idea what I was thinking when I posted it
|
Search is your friend “I was having a mildly paranoid day, mostly due to the fact that the mad priest lady from over the river had taken to nailing weasels to my front door again.” |
|
|
CptSternn
Starting Member
Ireland
17 Posts |
Posted - 07 April 2009 : 02:00:42
|
Thanks for that - but note, in the upgrade version of the new system it will automatically upgrade your current database so you can use it and then you don't have to worry about any changes to it from the mods - all the old changes will be there already.
I was asking more about the code itself. I thought maybe someone wrote a utility that would grep differences from the old page and new page and could easily copy over any changes.
If no one has, maybe thats something I need to work on...
|
|
|
Carefree
Advanced Member
Philippines
4207 Posts |
Posted - 07 April 2009 : 02:44:53
|
There are a number of programs out there which compare files. Beyond Compare, Ultra Compare, etc. Google "file comparison" utility. |
|
|
|
Topic |
|