| ||||||||||||
![]() |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
(#1)
|
| Senior Member Posts: 5,387 Join Date: Jun 2005 Location: Cumbria, UK | Detect Upgrade Script Needs to be Run -
08-08-2007, 01:44 PM
As I was saying in another thread, it would be nice if when you login to the admin area it checks to see if you have uploaded files but haven't run the database upgrade script and if this is the case, redirect you to the upgrade script. The reason for this is I imagine a lot of people upload the files and then either forget or do not know they need to do anything more. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#2)
|
| Operations Manager Posts: 5,119 Join Date: Jan 2006 Location: United Kingdom |
08-08-2007, 03:31 PM
Good idea -------------------------------------------------------------------
|
| | |
(#3)
|
| Community Moderator Posts: 855 Join Date: May 2005 Location: Henderson, Nevada |
08-08-2007, 03:38 PM
Thing is the upgrade script is within the "setup" directory which if the "setup" directory is there you will get a red text that says you must delete the setup directory and it wont let you login. So it pretty much already does it.. granted it doesnt tell you that you haven't run the upgrade script yet or not so someone could not run the script and delete the setup directory.. Digital Mayhem, Inc. AIM: Steve.Lawrence@Digital-Mayhem.com MSN: Steve.Lawrence@Digital-Mayhem.com GTALK: Steve.Lawrence@Digital-Mayhem.com YAHOO: DigitalMayhem_Steve SKYPE: DigitalMayhem_Steve I'm Important |
| | |
(#4)
|
| Senior Member Posts: 5,387 Join Date: Jun 2005 Location: Cumbria, UK |
08-08-2007, 03:45 PM
That is true Steve but I think something that does as I said would be better. I imagine a fair few people submit support tickets about problems because they haven't run the upgrade script. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#5)
|
| Operations Manager Posts: 5,119 Join Date: Jan 2006 Location: United Kingdom |
09-08-2007, 11:44 AM
This has already been implemented: Code: if (version_compare(SWIFTVERSION, $_SWIFT["settingscache"]["core"]["version"]) == -1 )
...
echo "<center><b><font color='red' face='verdana, arial, helvetica' size='2'>[WARNING]: Database Version Tag (". $_SWIFT["settingscache"]["core"]["version"] .") and File (". SWIFTVERSION .") Mismatch!</font></b><BR /><font color='black' face='verdana, arial, helvetica' size='1'>Please update your files to the latest revision, This error happens when your database structure is different than the PHP files you are using.</font></center>\n<BR />";
...
-------------------------------------------------------------------
|
| | |
(#6)
|
| Senior Member Posts: 5,387 Join Date: Jun 2005 Location: Cumbria, UK |
09-08-2007, 12:17 PM
Ah great. Yea, must admit I never saw anything like then when I tested just before posting this topic. Icon Headquarters - Its Elixir - Web2Messenger |
| | |
(#7)
|
| Operations Manager Posts: 5,119 Join Date: Jan 2006 Location: United Kingdom |
09-08-2007, 04:10 PM
Committed 9th August 2007. -------------------------------------------------------------------
|
| | |
![]() |
| Tags |
| detect, run, script, upgrade |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Script to check tables after breaking auto-increment (PHP4 -> PHP5 upgrade) | dotboost | Technical Chat | 1 | 26-07-2007 09:29 AM |
| Test Domain for Upgrade Dry Run? | tm2000 | Installation & Upgrading | 6 | 08-03-2007 06:07 PM |