123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace MTWorkHR.Identity.Migrations
- {
- /// <inheritdoc />
- public partial class updateUserConfig : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<decimal>(
- name: "TaxNumber",
- table: "AspNetUsers",
- type: "decimal(18,2)",
- nullable: true,
- oldClrType: typeof(decimal),
- oldType: "decimal(18,2)");
- migrationBuilder.AlterColumn<int>(
- name: "QualificationId",
- table: "AspNetUsers",
- type: "int",
- nullable: true,
- oldClrType: typeof(int),
- oldType: "int");
- migrationBuilder.AlterColumn<decimal>(
- name: "IncomeTaxValue",
- table: "AspNetUsers",
- type: "decimal(18,2)",
- nullable: true,
- oldClrType: typeof(decimal),
- oldType: "decimal(18,2)");
- migrationBuilder.UpdateData(
- table: "AspNetUsers",
- keyColumn: "Id",
- keyValue: "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
- columns: new[] { "IncomeTaxValue", "QualificationId", "TaxNumber" },
- values: new object[] { 1m, 1, 111m });
- migrationBuilder.UpdateData(
- table: "AspNetUsers",
- keyColumn: "Id",
- keyValue: "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
- columns: new[] { "IncomeTaxValue", "QualificationId", "TaxNumber" },
- values: new object[] { 100m, 1, 222m });
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<decimal>(
- name: "TaxNumber",
- table: "AspNetUsers",
- type: "decimal(18,2)",
- nullable: false,
- defaultValue: 0m,
- oldClrType: typeof(decimal),
- oldType: "decimal(18,2)",
- oldNullable: true);
- migrationBuilder.AlterColumn<int>(
- name: "QualificationId",
- table: "AspNetUsers",
- type: "int",
- nullable: false,
- defaultValue: 0,
- oldClrType: typeof(int),
- oldType: "int",
- oldNullable: true);
- migrationBuilder.AlterColumn<decimal>(
- name: "IncomeTaxValue",
- table: "AspNetUsers",
- type: "decimal(18,2)",
- nullable: false,
- defaultValue: 0m,
- oldClrType: typeof(decimal),
- oldType: "decimal(18,2)",
- oldNullable: true);
- migrationBuilder.UpdateData(
- table: "AspNetUsers",
- keyColumn: "Id",
- keyValue: "ADMB3B92-2311-48F8-9DEC-F9FAEF1F21UA",
- columns: new[] { "IncomeTaxValue", "QualificationId", "TaxNumber" },
- values: new object[] { 0m, 0, 0m });
- migrationBuilder.UpdateData(
- table: "AspNetUsers",
- keyColumn: "Id",
- keyValue: "AL5B3B92-2311-48F8-9DEC-F9FAEF1F21UB",
- columns: new[] { "IncomeTaxValue", "QualificationId", "TaxNumber" },
- values: new object[] { 0m, 0, 0m });
- }
- }
- }
|