203 lines
9.0 KiB
C#
203 lines
9.0 KiB
C#
|
using System;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace GrossesMitainesAPI.Migrations
|
|||
|
{
|
|||
|
public partial class invoiceClient : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "AspNetRoles",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: "1b7b9c55-c746-493a-a24f-3d5ca937298e",
|
|||
|
column: "ConcurrencyStamp",
|
|||
|
value: "31012aa2-ebcf-493a-bc1c-2066d47dd333");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "AspNetRoles",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: "c9e08b20-d8a5-473f-9f52-572eb23c12af",
|
|||
|
column: "ConcurrencyStamp",
|
|||
|
value: "b110abae-bf70-453d-93d4-a3b0d74f9491");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "AspNetUsers",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: "ecf7503a-591c-454e-a824-048e10bd0474",
|
|||
|
columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" },
|
|||
|
values: new object[] { "d6f87641-e92e-44f6-a26c-3539ccc0b374", "AQAAAAEAACcQAAAAEGleiGV7pLvmGVcR9JU/Yc8Oo/+8CGFU2ZDvWJnonvm5/XbCOHsIwWHvAB3GCpiZJA==", "719b228c-6b86-4193-b994-365aaf1d19fc" });
|
|||
|
|
|||
|
migrationBuilder.InsertData(
|
|||
|
table: "AspNetUsers",
|
|||
|
columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "Email", "EmailConfirmed", "FirstName", "LastName", "LockoutEnabled", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "SecurityStamp", "TwoFactorEnabled", "UserName" },
|
|||
|
values: new object[] { "af9178c8-1a02-4ff8-bc0a-c8248dad6e09", 0, "989931b3-2a7b-44db-8e22-308d2270442c", "paul@exemple.com", false, "Paul", "A.", false, null, "PAUL@EXEMPLE.COM", "PASLA", "AQAAAAEAACcQAAAAEPffpp6X7ztCzWieTbiRInK5P/1AZx6Pdy1tUbTQS5GXLWGcZzhqlzaB8QGlwkJzDw==", null, false, "6bbc335f-1307-40eb-8533-694a608937de", false, "PasLa" });
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 1,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 49, 52, 210, DateTimeKind.Local).AddTicks(9693));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 2,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 49, 52, 210, DateTimeKind.Local).AddTicks(9731));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 3,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 49, 52, 210, DateTimeKind.Local).AddTicks(9733));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 4,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 49, 52, 210, DateTimeKind.Local).AddTicks(9735));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 5,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 49, 52, 210, DateTimeKind.Local).AddTicks(9736));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 6,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 49, 52, 210, DateTimeKind.Local).AddTicks(9738));
|
|||
|
|
|||
|
migrationBuilder.InsertData(
|
|||
|
table: "Addresses",
|
|||
|
columns: new[] { "Id", "Appartment", "City", "CivicNumber", "Country", "InventoryUserId", "PostalCode", "Province", "Street" },
|
|||
|
values: new object[] { 3, "A", "Saint-Québec", 69, "Canada", "af9178c8-1a02-4ff8-bc0a-c8248dad6e09", "H0H0H0", "QC", "Rue PSPP" });
|
|||
|
|
|||
|
migrationBuilder.InsertData(
|
|||
|
table: "AspNetUserRoles",
|
|||
|
columns: new[] { "RoleId", "UserId" },
|
|||
|
values: new object[] { "1b7b9c55-c746-493a-a24f-3d5ca937298e", "af9178c8-1a02-4ff8-bc0a-c8248dad6e09" });
|
|||
|
|
|||
|
migrationBuilder.InsertData(
|
|||
|
table: "Invoices",
|
|||
|
columns: new[] { "Id", "EmailAddress", "FirstName", "LastName", "LinkedAccountId", "PhoneNumber", "PurchaseDate", "ShippingAddressId", "Status" },
|
|||
|
values: new object[] { 7, "paul@exemple.com", "Paul", "A.", "af9178c8-1a02-4ff8-bc0a-c8248dad6e09", "111-111-1111", new DateTime(2022, 11, 7, 22, 49, 52, 210, DateTimeKind.Local).AddTicks(9740), 3, 3 });
|
|||
|
|
|||
|
migrationBuilder.InsertData(
|
|||
|
table: "ProductInvoice",
|
|||
|
columns: new[] { "Id", "InvoiceModelId", "ProductId", "Quantity" },
|
|||
|
values: new object[] { 17, 7, 1, 1L });
|
|||
|
|
|||
|
migrationBuilder.InsertData(
|
|||
|
table: "ProductInvoice",
|
|||
|
columns: new[] { "Id", "InvoiceModelId", "ProductId", "Quantity" },
|
|||
|
values: new object[] { 18, 7, 15, 2L });
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DeleteData(
|
|||
|
table: "AspNetUserRoles",
|
|||
|
keyColumns: new[] { "RoleId", "UserId" },
|
|||
|
keyValues: new object[] { "1b7b9c55-c746-493a-a24f-3d5ca937298e", "af9178c8-1a02-4ff8-bc0a-c8248dad6e09" });
|
|||
|
|
|||
|
migrationBuilder.DeleteData(
|
|||
|
table: "ProductInvoice",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 17);
|
|||
|
|
|||
|
migrationBuilder.DeleteData(
|
|||
|
table: "ProductInvoice",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 18);
|
|||
|
|
|||
|
migrationBuilder.DeleteData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 7);
|
|||
|
|
|||
|
migrationBuilder.DeleteData(
|
|||
|
table: "Addresses",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 3);
|
|||
|
|
|||
|
migrationBuilder.DeleteData(
|
|||
|
table: "AspNetUsers",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: "af9178c8-1a02-4ff8-bc0a-c8248dad6e09");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "AspNetRoles",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: "1b7b9c55-c746-493a-a24f-3d5ca937298e",
|
|||
|
column: "ConcurrencyStamp",
|
|||
|
value: "8b05058e-1c97-4021-a485-6987e774c877");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "AspNetRoles",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: "c9e08b20-d8a5-473f-9f52-572eb23c12af",
|
|||
|
column: "ConcurrencyStamp",
|
|||
|
value: "e5b77c04-830f-4c19-ad44-6c9e5a508efb");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "AspNetUsers",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: "ecf7503a-591c-454e-a824-048e10bd0474",
|
|||
|
columns: new[] { "ConcurrencyStamp", "PasswordHash", "SecurityStamp" },
|
|||
|
values: new object[] { "af3a641d-8fe8-45c3-8e36-fdfbef10659a", "AQAAAAEAACcQAAAAEL/k0+c61dX1YPgqHrr6wmVSZNJzoqveJzr8IxjVSSL3W+GSsqOXft+hVLXozCnqVg==", "8ac35276-f8dc-4de4-826f-ea2996e09f2c" });
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 1,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 35, 25, 783, DateTimeKind.Local).AddTicks(6619));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 2,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 35, 25, 783, DateTimeKind.Local).AddTicks(6655));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 3,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 35, 25, 783, DateTimeKind.Local).AddTicks(6658));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 4,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 35, 25, 783, DateTimeKind.Local).AddTicks(6659));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 5,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 35, 25, 783, DateTimeKind.Local).AddTicks(6661));
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Invoices",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 6,
|
|||
|
column: "PurchaseDate",
|
|||
|
value: new DateTime(2022, 11, 7, 22, 35, 25, 783, DateTimeKind.Local).AddTicks(6663));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|