Woohoo
This commit is contained in:
@@ -11,7 +11,7 @@ using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
namespace GrossesMitainesAPI.Migrations
|
||||
{
|
||||
[DbContext(typeof(InventoryContext))]
|
||||
[Migration("20221009190720_Initial-Db")]
|
||||
[Migration("20221016150710_Initial-Db")]
|
||||
partial class InitialDb
|
||||
{
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
@@ -48,14 +48,14 @@ namespace GrossesMitainesAPI.Migrations
|
||||
b.Property<long>("Quantity")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("nvarchar(255)");
|
||||
|
||||
b.Property<bool>("isDiscontinued")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Products");
|
||||
@@ -69,8 +69,8 @@ namespace GrossesMitainesAPI.Migrations
|
||||
ImageName = "ceintureflechee",
|
||||
Price = 85.86m,
|
||||
Quantity = 1L,
|
||||
Title = "Ceinture flèchée",
|
||||
isDiscontinued = false
|
||||
Status = 4,
|
||||
Title = "Ceinture flèchée"
|
||||
},
|
||||
new
|
||||
{
|
||||
@@ -80,8 +80,8 @@ namespace GrossesMitainesAPI.Migrations
|
||||
ImageName = "pantouflesCH",
|
||||
Price = 15.64m,
|
||||
Quantity = 54L,
|
||||
Title = "Pantoufles du Canadien en Phentex",
|
||||
isDiscontinued = false
|
||||
Status = 0,
|
||||
Title = "Pantoufles du Canadien en Phentex"
|
||||
},
|
||||
new
|
||||
{
|
||||
@@ -91,8 +91,8 @@ namespace GrossesMitainesAPI.Migrations
|
||||
ImageName = "jeanlucmongrain",
|
||||
Price = 1453.12m,
|
||||
Quantity = 1L,
|
||||
Title = "Jean-Luc Mongrain",
|
||||
isDiscontinued = true
|
||||
Status = 3,
|
||||
Title = "Jean-Luc Mongrain"
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
@@ -19,7 +19,7 @@ namespace GrossesMitainesAPI.Migrations
|
||||
Description = table.Column<string>(type: "nvarchar(max)", nullable: false),
|
||||
Price = table.Column<decimal>(type: "decimal(18,2)", nullable: false),
|
||||
Quantity = table.Column<long>(type: "bigint", nullable: false),
|
||||
isDiscontinued = table.Column<bool>(type: "bit", nullable: false),
|
||||
Status = table.Column<int>(type: "int", nullable: false),
|
||||
ImageName = table.Column<string>(type: "nvarchar(max)", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
@@ -29,18 +29,18 @@ namespace GrossesMitainesAPI.Migrations
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Products",
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Title", "isDiscontinued" },
|
||||
values: new object[] { 1, "Linge", "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", "ceintureflechee", 85.86m, 1L, "Ceinture flèchée", false });
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 1, "Linge", "Pour faire votre propre bonhomme de 1837, comme dans le bon vieux temps.", "ceintureflechee", 85.86m, 1L, 4, "Ceinture flèchée" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Products",
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Title", "isDiscontinued" },
|
||||
values: new object[] { 2, "Linge", "Parce que ça sent la coupe!", "pantouflesCH", 15.64m, 54L, "Pantoufles du Canadien en Phentex", false });
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 2, "Linge", "Parce que ça sent la coupe!", "pantouflesCH", 15.64m, 54L, 0, "Pantoufles du Canadien en Phentex" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Products",
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Title", "isDiscontinued" },
|
||||
values: new object[] { 3, "Homme", "On ne lui ferait pas mal, en tout cas!!", "jeanlucmongrain", 1453.12m, 1L, "Jean-Luc Mongrain", true });
|
||||
columns: new[] { "Id", "Category", "Description", "ImageName", "Price", "Quantity", "Status", "Title" },
|
||||
values: new object[] { 3, "Homme", "On ne lui ferait pas mal, en tout cas!!", "jeanlucmongrain", 1453.12m, 1L, 3, "Jean-Luc Mongrain" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
@@ -46,14 +46,14 @@ namespace GrossesMitainesAPI.Migrations
|
||||
b.Property<long>("Quantity")
|
||||
.HasColumnType("bigint");
|
||||
|
||||
b.Property<int>("Status")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<string>("Title")
|
||||
.IsRequired()
|
||||
.HasMaxLength(255)
|
||||
.HasColumnType("nvarchar(255)");
|
||||
|
||||
b.Property<bool>("isDiscontinued")
|
||||
.HasColumnType("bit");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.ToTable("Products");
|
||||
@@ -67,8 +67,8 @@ namespace GrossesMitainesAPI.Migrations
|
||||
ImageName = "ceintureflechee",
|
||||
Price = 85.86m,
|
||||
Quantity = 1L,
|
||||
Title = "Ceinture flèchée",
|
||||
isDiscontinued = false
|
||||
Status = 4,
|
||||
Title = "Ceinture flèchée"
|
||||
},
|
||||
new
|
||||
{
|
||||
@@ -78,8 +78,8 @@ namespace GrossesMitainesAPI.Migrations
|
||||
ImageName = "pantouflesCH",
|
||||
Price = 15.64m,
|
||||
Quantity = 54L,
|
||||
Title = "Pantoufles du Canadien en Phentex",
|
||||
isDiscontinued = false
|
||||
Status = 0,
|
||||
Title = "Pantoufles du Canadien en Phentex"
|
||||
},
|
||||
new
|
||||
{
|
||||
@@ -89,8 +89,8 @@ namespace GrossesMitainesAPI.Migrations
|
||||
ImageName = "jeanlucmongrain",
|
||||
Price = 1453.12m,
|
||||
Quantity = 1L,
|
||||
Title = "Jean-Luc Mongrain",
|
||||
isDiscontinued = true
|
||||
Status = 3,
|
||||
Title = "Jean-Luc Mongrain"
|
||||
});
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
|
Reference in New Issue
Block a user