Back to Flyway

SQL Server Data Disable Foreign Keys Setting

documentation/Reference/Configuration/Redgate Compare Namespace/Redgate Compare SQL Server Namespace/SQL Server Data Deployment Options Namespace/SQL Server Data Disable Foreign Keys Setting.md

latest587 B
Original Source

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

Flyway Desktop

This can be set from the data comparison options settings in SQL Server projects.

Command-line

powershell
./flyway diff -redgateCompare.sqlserver.data.options.deployment.disableForeignKeys=true

TOML Configuration File

toml
[redgateCompare.sqlserver.data.options.deployment]
disableForeignKeys = true