Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




migrating from 2.2.6 to v3_1_1 getting a db error onflicted with COLUMN FOREIGN KEY constraint

web-app

When executing "Upgradev3-0-Step1.sql" I get the following error message

0 row(s) affected)
Msg 547, Level 16, State 0, Line 251
INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'gemini
projectversionattributevaluesattributeidfk'. The conflict occurred in database 'Geminidb', table 'gemini_projectversionattributes', column 'attributeid'.
The statement has been terminated.


I followed all the other steps as described...
Will this create bigger issues or is something that it can be ignored?

It does execute all the other commands and the error mentioned above is the only error I get.

thank you for your time.

garifo

garifo
· 1
garifo
Replies (4)
helpful
0
not helpful

Seems like you have project version attribute values with not attributesI suggest excluding these from the upgrdae by adding an SQL in statment (step 1.sql):

DELETE FROM geminiprojectversionattributevalues
SET IDENTITY
INSERT geminiprojectversionattributevalues ON
INSERT INTO gemini
projectversionattributevalues (attributevalueid, attributeid, projectid, versionid, attributevalue)
 SELECT attributevalueid, attributeid, projid, verid, attributevalue FROM projectversionattributevalues WHERE attributeid IN (SELECT attributeid FROM geminiprojectversionattributes)
SET IDENTITYINSERT gemini_projectversionattributevalues OFF


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

thank you that did the trick...one more questions:
in CounterSoftGeminiv311 there is one last db upgrade file Upgradev3-1.sql, do we execute this...The gemini documentation does not mention this file.
I'm currently doing this in my test enviorment...I executed Upgrade
v3-1.sql but there are a few errors that display:

Msg 2705, Level 16, State 4, Line 5
Column names in each table must be unique. Column name 'parentcomponentid' in table 'geminicomponents' is specified more than once.
Msg 3726, Level 16, State 1, Line 5
Could not drop object 'gemini
projectlabels' because it is referenced by a FOREIGN KEY constraint.
Msg 2714, Level 16, State 6, Line 2
There is already an object named 'geminiprojectlabels' in the database.
Msg 2705, Level 16, State 4, Line 2
Column names in each table must be unique. Column name 'projectlabelid' in table 'gemini
projects' is specified more than once.
Msg 2705, Level 16, State 4, Line 5
Column names in each table must be unique. Column name 'apikey' in table 'gemini_users' is specified more than once.


Thanks again for you time.

garifo


garifo
· 1
garifo
helpful
0
not helpful

You do not need to run this script. Please remember to run createviews and createprocs at the end of the upgrade.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

thank you..
Yes I created them.

thank you for your help.


garifo
· 1
garifo