Back to Flyway

SQL Server Add Create Or Alter For Rerunnable Scripts Setting

documentation/Reference/Configuration/Redgate Compare Namespace/Redgate Compare SQL Server Namespace/SQL Server Behavior Options Namespace/SQL Server Add Create Or Alter For Rerunnable Scripts Setting.md

latest616 B
Original Source

Description

When this option is selected, CREATE OR ALTER statements are used for the following objects:

  • Views
  • Stored Procedures
  • Functions
  • Extended Properties
  • DDL Triggers
  • DML Triggers

Type

Boolean

Default

false

Usage

Flyway Desktop

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

Command-line

powershell
./flyway diff -redgateCompare.sqlserver.options.behavior.addCreateOrAlterForRerunnableScripts=true

TOML Configuration File

toml
[redgateCompare.sqlserver.options.behavior]
addCreateOrAlterForRerunnableScripts = true