I'm in a multi-tenant environment and some tenant databases have custom columns in the common tables that all tenants share. The SQL Server Data Tools project only contains the schema for the common columns in the tables. So when I try to publish the dacpac to apply schema changes it'll try to drop the custom column since the SSDT project doesn't contain those custom columns.
For example:
Common Account
table columns:
- AccountID
- FirstName
- LastName
Tenant Account
table columns:
- AccountID
- FirstName
- LastName
- CustomField1
- CustomField2
Is there any way to prevent SSDT from trying to drop any columns while leaving the flag to block on potential data loss on? I'll be using sqlpackage.exe
on the build pipeline as well.