View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0006307 | mantisbt | upgrade | public | 2005-09-30 17:02 | 2007-08-02 02:31 |
Reporter | gtomlin | Assigned To | grangeway | ||
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Product Version | 1.0.0rc2 | ||||
Summary | 0006307: Upgrade from 1.0.0a2 to 1.0.0rc2 fails trying to create mantis_config_table which already exists | ||||
Description | Running admin\install.php as directed by: Create database if it does not exist Attempting to connect to database as user Create Schema ( CreateTableSQL on mantis_config_table ) | ||||
Additional Information | Environment: | ||||
Tags | No tags attached. | ||||
It turns out that if you go through admin/index.php and run through the upgrades in admin/upgrade.php, install.php succeeds. However, this is contrary to the advice of step 6 of http://manual.mantisbt.org/manual.installation.upgrading.php. This procedure instructs the user to go directly to admin/install.php unless the user is migrating from pre-1.0.0. My database was created using 1.0.0a2, so according to the instructions I should not have run admin/upgrade.php. The instructions should be fixed to reflect current reality. |
|
There are two sections for upgrading. For new installations, you use the new installer (install.php). To upgrade an older installation to 1.0.0, you need to use the older "upgrade.php" process. |
|
Unfortunately, that's not what Step 6 says: "6. Next we will update the necessary database tables. If you are upgrading from a pre-1.0.0 installation to 1.0.0, access http://yoursite/mantis-release/admin/upgrade.php. This will upgrade your database to 1.0.0. Once your database has reached release 1.0.0, you can use the method listed below. From your web server, access http://yoursite/mantis-release/admin/install.php" This suggests that a site that was at 1.0.0 should just run admin/install.php (I'm assuming that 1.0.0a2 counts as 1.0.0 here because it's not stated one way or the other). |
|
I upgraded the manual source to read: If you are upgrading from a pre-1.0.0 (including 1.0.0a or 1.0.0rc) installation to 1.0.0, access http://yoursite/mantis-release/admin/upgrade.php. This will upgrade your database to 1.0.0. Once your database has reached release 1.0.0, you can use the method listed below. It should be public soon. |
|
Thanks thraxisp. That clarifies who needs to run admin/upgrade.php. |
|
This still occurs on mantis-1.0.0rc3 |
|
.../admin/schema.php contains this line: $upgrade[] = Array('CreateTableSQL',Array(config_get('mantis_bug_file_table')," I looked at our current schema and noticed that mantis_bug_file_table already exists and has content inside dating from 2003. Could this be the root of the problem? Does this table require modification and not creation during the upgrade? |
|
Liberally changing CreateTableSQL to ChangeTableSQL in admin/schema.php seems to have upgraded my tables to v1.0.0RC3 correctly. |
|
Marking this as resolved as it would seem you've manually managed to get your data upgraded. If your still having issues, can you let us know Paul |
|