Few errors upgrading to GOLD R9 from 7.0.3
Posted: Sun Nov 16, 2014 10:45 am
Ran into a few errors upgrading from 7.0.3 to GOLD R9. The upgrade finished, and everything seems to function, although sometimes seems sluggish, especially in admin. This was just and we'd like to go live in the next few days. We did it twice, once cleaning up the transaction log prior to upgrade. Both databases function, but we'd like to start off without any errors.
First try:
SQL: IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE TABLE_NAME = 'ac_CategoryParents' AND CONSTRAINT_NAME = 'ac_Categories_ac_CategoryParents_FK1') BEGIN ALTER TABLE "ac_CategoryParents" ADD CONSTRAINT ac_Categories_ac_CategoryParents_FK1 FOREIGN KEY ( CategoryId) REFERENCES ac_Categories ( CategoryId) ON UPDATE NO ACTION ON DELETE CASCADE END
Error: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "ac_Categories_ac_CategoryParents_FK1". The conflict occurred in database "ACR9-gold-test", table "dbo.ac_Categories", column 'CategoryId'.
The database has been upgraded.
Second try:
this one I had to start over because the page errors
The errors listed below occurred while upgrading the database:
SQL: ALTER TABLE "ac_CategoryParents" DROP CONSTRAINT "ac_CategoryParents_PK"
Error: 'ac_CategoryParents_PK' is not a constraint. Could not drop constraint. See previous errors.
SQL: IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE TABLE_NAME = 'ac_CategoryParents' AND CONSTRAINT_NAME = 'ac_Categories_ac_CategoryParents_FK1') BEGIN ALTER TABLE "ac_CategoryParents" ADD CONSTRAINT ac_Categories_ac_CategoryParents_FK1 FOREIGN KEY ( CategoryId) REFERENCES ac_Categories ( CategoryId) ON UPDATE NO ACTION ON DELETE CASCADE END
Error: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "ac_Categories_ac_CategoryParents_FK1". The conflict occurred in database "ACR9-goldtest2", table "dbo.ac_Categories", column 'CategoryId'.
The database has been upgraded.
First try:
SQL: IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE TABLE_NAME = 'ac_CategoryParents' AND CONSTRAINT_NAME = 'ac_Categories_ac_CategoryParents_FK1') BEGIN ALTER TABLE "ac_CategoryParents" ADD CONSTRAINT ac_Categories_ac_CategoryParents_FK1 FOREIGN KEY ( CategoryId) REFERENCES ac_Categories ( CategoryId) ON UPDATE NO ACTION ON DELETE CASCADE END
Error: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "ac_Categories_ac_CategoryParents_FK1". The conflict occurred in database "ACR9-gold-test", table "dbo.ac_Categories", column 'CategoryId'.
The database has been upgraded.
Second try:
this one I had to start over because the page errors
The errors listed below occurred while upgrading the database:
SQL: ALTER TABLE "ac_CategoryParents" DROP CONSTRAINT "ac_CategoryParents_PK"
Error: 'ac_CategoryParents_PK' is not a constraint. Could not drop constraint. See previous errors.
SQL: IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS WHERE TABLE_NAME = 'ac_CategoryParents' AND CONSTRAINT_NAME = 'ac_Categories_ac_CategoryParents_FK1') BEGIN ALTER TABLE "ac_CategoryParents" ADD CONSTRAINT ac_Categories_ac_CategoryParents_FK1 FOREIGN KEY ( CategoryId) REFERENCES ac_Categories ( CategoryId) ON UPDATE NO ACTION ON DELETE CASCADE END
Error: The ALTER TABLE statement conflicted with the FOREIGN KEY constraint "ac_Categories_ac_CategoryParents_FK1". The conflict occurred in database "ACR9-goldtest2", table "dbo.ac_Categories", column 'CategoryId'.
The database has been upgraded.