using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SchotzIadKmTracker.Api.Data.Migrations { /// public partial class AjoutParametresApplication : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ParametresApplication", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false), PrecisionDistanceKm = table.Column(type: "INTEGER", nullable: false), UpdatedAt = table.Column(type: "TEXT", nullable: false) }, constraints: table => { table.PrimaryKey("PK_ParametresApplication", x => x.Id); table.CheckConstraint("CK_ParametresApplication_PrecisionDistanceKm", "\"PrecisionDistanceKm\" IN (0, 1, 2)"); }); migrationBuilder.CreateIndex( name: "UX_ParametresApplication_Singleton", table: "ParametresApplication", column: "Id", unique: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ParametresApplication"); } } }