Skip to content

Commit

Permalink
Migrations: Don't warn for existing calls to CreateCheckConstraint (#…
Browse files Browse the repository at this point in the history
…21842)

Part of #20409
  • Loading branch information
bricelam committed Jul 29, 2020
1 parent a0342cc commit c787cd0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/EFCore.Relational/Migrations/MigrationBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -695,14 +695,19 @@ public virtual OperationBuilder<CreateSequenceOperation> CreateSequence<T>(
}

/// <summary>
/// Builds an <see cref="AddCheckConstraintOperation" /> to create a new check constraint.
/// <para>
/// Warning, this API is obsolete. Use <see cref="AddCheckConstraint"/> instead.
/// </para>
/// <para>
/// Builds an <see cref="AddCheckConstraintOperation" /> to create a new check constraint.
/// </para>
/// </summary>
/// <param name="name"> The check constraint name. </param>
/// <param name="table"> The name of the table for the check constraint. </param>
/// <param name="sql"> The constraint sql for the check constraint. </param>
/// <param name="schema"> The schema that contains the check constraint, or <see langword="null" /> to use the default schema. </param>
/// <returns> A builder to allow annotations to be added to the operation. </returns>
[Obsolete("Use AddCheckConstraint")]
[EditorBrowsable(EditorBrowsableState.Never)]
public virtual OperationBuilder<AddCheckConstraintOperation> CreateCheckConstraint(
[NotNull] string name,
[NotNull] string table,
Expand Down

0 comments on commit c787cd0

Please sign in to comment.