SQL Server Data Disable Foreign Keys Setting
Published 15 January 2025
Description
Disables then re-enables foreign keys in the deployment script. Note that in some circumstances foreign keys will be dropped and recreated rather than disabled and re-enabled.
Type
Boolean
Default
false
Usage
This setting can't be configured other than in a TOML configuration file.
Flyway Desktop
This can be set from the data comparison options settings in SQL Server projects.
TOML Configuration File
[redgateCompare.sqlserver.data.options.deployment]
disableForeignKeys = true