DropCheckConstraintOperation
Drop a check constraint. Implements [MIG-CHECK-CONSTRAINT-EXPRESSION-DRIFT] (#57): when a declared CHECK changes its predicate but keeps the same name, the diff emits a drop+add pair so the live constraint is replaced. Treated as a non-destructive replacement (not a deletion) — the immediately-following add restores a constraint with the same name and a stricter or different predicate; if existing rows violate the new predicate the apply will error loudly rather than silently corrupt data.
public sealed record DropCheckConstraintOperation : SchemaOperation, IEquatable<SchemaOperation>, IEquatable<DropCheckConstraintOperation>
Constructors
DropCheckConstraintOperation
public DropCheckConstraintOperation(string Schema, string TableName, string ConstraintName)
Drop a check constraint. Implements [MIG-CHECK-CONSTRAINT-EXPRESSION-DRIFT] (#57): when a declared CHECK changes its predicate but keeps the same name, the diff emits a drop+add pair so the live constraint is replaced. Treated as a non-destructive replacement (not a deletion) — the immediately-following add restores a constraint with the same name and a stricter or different predicate; if existing rows violate the new predicate the apply will error loudly rather than silently corrupt data.
| Parameter | Type | Description |
|---|---|---|
Schema |
String |
|
TableName |
String |
|
ConstraintName |
String |
Properties
Schema
public string Schema { get; init; }
TableName
public string TableName { get; init; }
ConstraintName
public string ConstraintName { get; init; }