Comments
1 comment
-
Hi ybhole,
Thanks for posting on the Redgate forums.
At the start of the schema validation step all of the user objects are dropped.
To get around this problem you would either need to use some Data Manipulation in the Post-Deployment Script or another method could be to use T-SQL that checks for the existence of the tables before attempting to manipulate data.
Add comment
Please sign in to leave a comment.
The error 'Invalid object name 'dbo.MyTableName'.
So how to write a preupgrade script for an existing tables, as Teamcity will always throw exception on preupgrade script as tables are being dropped first while building a database.