1234567891011121314151617181920212223242526272829303132333435363738394041 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace MTWorkHR.Infrastructure.Migrations
- {
- /// <inheritdoc />
- public partial class UserTasks2 : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- name: "DeleteUserId",
- table: "UserTasks",
- type: "nvarchar(450)",
- maxLength: 450,
- nullable: true,
- oldClrType: typeof(string),
- oldType: "nvarchar(450)",
- oldMaxLength: 450);
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- name: "DeleteUserId",
- table: "UserTasks",
- type: "nvarchar(450)",
- maxLength: 450,
- nullable: false,
- defaultValue: "",
- oldClrType: typeof(string),
- oldType: "nvarchar(450)",
- oldMaxLength: 450,
- oldNullable: true);
- }
- }
- }
|