Migration issue
Hi,
We are moving from 1.9.1 to 4 and having followed the instructions for migration have come across the following errors when running the final part of the migration script, c:\Program Files\Gemini\Gemini Database\Upgrades\UPGRADE_v3-0-Step1.sql
Msg 207, Level 16, State 1, Line 49 Invalid column name 'comment'.
Msg 207, Level 16, State 1, Line 49 Invalid column name 'active'.
Msg 207, Level 16, State 1, Line 205 Invalid column name 'resourcemode'.
Msg 207, Level 16, State 1, Line 205 Invalid column name 'componentmode'.
Msg 207, Level 16, State 1, Line 397 Invalid column name 'affectedversions'.
Can any one shed some light on what we are doing wrong and/or how we can rectify these issues. Additionally can you confirm that we should be using the 'create.sql' scripts for v4 as it seems odd that these should be run prior to the 'upgrade v3' script.
Many thanks
Chris
chrisb
· 1 |
|
Friday, June 3, 2011, 1:24:20 PM |
1
|
Yes, you have to run create_tables etc... as we have changed all table names. Can you post all scripts you have run and the order? |
||||
|
0
|
Hi Mark, Thanks for you prompt response, this is the detail our DBA set me.
On database "GeminiFrom2006"
Run scripts in c:\Program Files\Gemini\Gemini Database\Upgrades c:\Program Files\Gemini\Gemini Database\Upgrades\UPGRADE_v2-0.sql c:\Program Files\Gemini\Gemini Database\Upgrades\UPGRADE_v2-1.sql c:\Program Files\Gemini\Gemini Database\Upgrades\UPGRADE_v2-2.sql c:\Program Files\Gemini\Gemini Database\CREATE_TABLES.sql c:\Program Files\Gemini\Gemini Database\CREATE_VIEWS.sql c:\Program Files\Gemini\Gemini Database\CREATE_PROCS.sql c:\Program Files\Gemini\Gemini Database\Upgrades\UPGRADE_v3-0-Step1.sql |
||||
|
0
|
Looks like you might have a few schemas in the database and that might be causing the issue. For example if you look at the upgrade 2.2 script (lines 62 and 64) it is adding the active and comment columns to the users table. Can you check that they have been added? |
||||
|
0
|
To answer the immediate question, table dbo.users has the active nor the comment columns. Regarding multiple schemata, we only appear to have one schemata in the database. The query, "select distinct tableschema from INFORMATIONSCHEMA.TABLES" returns one value: dbo |
||||
|
0
|
So the columns are not there? If so, did you get any errors when running the upgrade 2.2 script? |
||||
|
0
|
Hi Mark, Our DBA is going to try the whole thing again to see if it works better a second time around. He said he will capture any output and if it fails again we can then send this through to you guys for analysis. Thanks again for you very quick responses. |
||||
|
0
|
After trying again, we no longer get the error messages outlined above, the old 1.9.1 projects are now visible in v4, however we cannot see any issues. The only error message we get is: Msg 547, Level 16, State 1, Server ASWD02\SQLDEV2, Line 271 The INSERT statement conflicted with the FOREIGN KEY constraint "geminiissuesissuetypeidfk". The conflict occurred in database "geminiFrom20062", table "dbo.gemini_issuetypes", column 'typeid'. The statement has been terminated. issueid Issue not imported because Project ID is invalid 962 Issue not imported because Project ID is invalid 4446 Issue not imported because Project ID is invalid 4447 |
||||
|
0
|
ANSWER
This means old issue data did not have a valid project Id was not migrated over. You can always look at the raw data via the following query: select * from issues where issueid in (962., 4446, 4447) However, I don't think that the data is now relevant since you deleted the project that it used to belong to. |
||||
|