12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace MTWorkHR.Infrastructure.Migrations
- {
- /// <inheritdoc />
- public partial class altrForget : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- name: "PostalCode",
- table: "UserAddress",
- type: "nvarchar(max)",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "nvarchar(max)");
- migrationBuilder.AlterColumn<int>(
- name: "CountryId",
- table: "UserAddress",
- type: "int",
- nullable: true,
- oldClrType: typeof(int),
- oldType: "int");
- migrationBuilder.AlterColumn<string>(
- name: "City",
- table: "UserAddress",
- type: "nvarchar(max)",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "nvarchar(max)");
- migrationBuilder.AlterColumn<string>(
- name: "AddressDesc",
- table: "UserAddress",
- type: "nvarchar(max)",
- nullable: true,
- oldClrType: typeof(string),
- oldType: "nvarchar(max)");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- name: "PostalCode",
- table: "UserAddress",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "nvarchar(max)",
- oldNullable: true);
- migrationBuilder.AlterColumn<int>(
- name: "CountryId",
- table: "UserAddress",
- type: "int",
- nullable: false,
- defaultValue: 0,
- oldClrType: typeof(int),
- oldType: "int",
- oldNullable: true);
- migrationBuilder.AlterColumn<string>(
- name: "City",
- table: "UserAddress",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "nvarchar(max)",
- oldNullable: true);
- migrationBuilder.AlterColumn<string>(
- name: "AddressDesc",
- table: "UserAddress",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "nvarchar(max)",
- oldNullable: true);
- }
- }
- }
|