Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Issues with upgrade tool discovered
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Issues with upgrade tool discovered

 Post Reply Post Reply
Author
Jesper View Drop Down
Newbie
Newbie


Joined: 18 February 2003
Location: Denmark
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jesper Quote  Post ReplyReply Direct Link To This Post Topic: Issues with upgrade tool discovered
    Posted: 27 April 2006 at 9:08pm
I took my 7.x db and used the upgrade tool. Since I appearantly am uncapable of creating a copy of the database from our host that includes the seed identity parameters I decided to create a new empty version 8 database, upgrade the 7.x copy and then copy the data to the new empty database.
 
All looked good and fine, but when I copied the contents I was presented with errors about columns that exist in the source but not in the destination.
 
I am not sure if that is my only problem (I hope), but would it be possible to modify the upgrade tool so that it drops the columns in the tables that are no longer used. Also you should consider removing the 'beta warnings' in the tool Wink
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 28 April 2006 at 9:16am
Once you have upgraded your 7.x database you can now use that database with version 8, just point web wiz forums version 8 at you upgraded version 7.x database using the 'database/database_connection.asp' file.

Copy and pasting data from one database to another will NOT work, for a number of reasons and not just the reason you mention, but also tables and post will not be associated correctly with each other, thus your forum will fail to work if you attempt to use this method.

The problem with auto dropping old fields in the database is that many have indexs accoiated with them, these often have unique names, and therefore can not be dropped using a standard generic tool. These fields that are no longer used do no harm to the upgraded database and if you really want or need to remove these redundant fields you can use the Version History file to get a list of dropped fields.
Back to Top
wistex View Drop Down
Mod Builder Group
Mod Builder Group


Joined: 30 August 2003
Location: United States
Status: Offline
Points: 877
Post Options Post Options   Thanks (0) Thanks(0)   Quote wistex Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2006 at 2:24am
Also, since many of us have modified the forums, some of us may have legacy code that still uses those fields.  Its better that the field be left in the database for this reason.  For example, almost all code I write would be able to handle a situation where the expected field is blank/empty, but would crash if there was no field there at all.  Also, in some situations, it might be useful for us to modify version 8 to continue using the field since we have started using it to control other parts of our website.  All in all, its better if old fields are left in the database.

Like Borg said, if you are sure you don't need them, you can delete them yourself.
Back to Top
Jesper View Drop Down
Newbie
Newbie


Joined: 18 February 2003
Location: Denmark
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jesper Quote  Post ReplyReply Direct Link To This Post Posted: 03 May 2006 at 9:29am
Good point. thanx for the feedback guys.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.