Script Verification fails when verified against the shadow database
christopher_frazier
Posts: 2
in ReadyRoll
I am running ReadyRoll on my local and I am able to deploy the solution just fine, which creates the database, schema and all deploy-once, deploy-changes, and post-deployment scripts. However, when I refresh the list of database object changes pending import, it creates a shadow database to verify my scripts against and I receive the following error from a deploy-once script:
Column 'dbo.Images.ImageID' is not the same data type as referencing column 'Locations.ImageId' in foreign key 'FK_Locations_Images'.
Both my Images primary key (ImageID) and my Locations foreign key (ImageId) are of type bigint and work fine when deploying. In fact, the script that is referenced for me to fix, changes the data type on my Locations.ImageId to a bigint so the fk can be created.
Why should this fail when verified against the local shadow db, but not my local db? Any help is appreciated.
Column 'dbo.Images.ImageID' is not the same data type as referencing column 'Locations.ImageId' in foreign key 'FK_Locations_Images'.
Both my Images primary key (ImageID) and my Locations foreign key (ImageId) are of type bigint and work fine when deploying. In fact, the script that is referenced for me to fix, changes the data type on my Locations.ImageId to a bigint so the fk can be created.
Why should this fail when verified against the local shadow db, but not my local db? Any help is appreciated.
Comments
Redgate Software
FYI if you'd like ReadyRoll to validate your scripts to make sure that 3-part self-references are not used, try checking this option in the project settings:
During build, any self-references should then be logged as errors.
Product Manager
Redgate Software