using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SchotzIadKmTracker.Api.Data.Migrations { /// public partial class TrancheBaremeKmCheckExclusif : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropCheckConstraint( name: "CK_TranchesBareme_Km", table: "TranchesBareme"); migrationBuilder.AddCheckConstraint( name: "CK_TranchesBareme_Km", table: "TranchesBareme", sql: "\"KmMax\" IS NULL OR \"KmMin\" < \"KmMax\""); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropCheckConstraint( name: "CK_TranchesBareme_Km", table: "TranchesBareme"); migrationBuilder.AddCheckConstraint( name: "CK_TranchesBareme_Km", table: "TranchesBareme", sql: "\"KmMin\" <= \"KmMax\""); } } }