1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace MTWorkHR.Infrastructure.Migrations
- {
- /// <inheritdoc />
- public partial class altrTaskHistory3 : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- name: "AssignedToUserId",
- table: "UserTaskHistories",
- type: "nvarchar(max)",
- nullable: true,
- oldClrType: typeof(long),
- oldType: "bigint");
- migrationBuilder.AddColumn<byte[]>(
- name: "Content",
- table: "UserTaskAttachments",
- type: "varbinary(max)",
- nullable: false,
- defaultValue: new byte[0]);
- migrationBuilder.AddColumn<string>(
- name: "ContentType",
- table: "UserTaskAttachments",
- type: "nvarchar(max)",
- nullable: true);
- migrationBuilder.AddColumn<string>(
- name: "FilePath",
- table: "UserTaskAttachments",
- type: "nvarchar(max)",
- nullable: true);
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "Content",
- table: "UserTaskAttachments");
- migrationBuilder.DropColumn(
- name: "ContentType",
- table: "UserTaskAttachments");
- migrationBuilder.DropColumn(
- name: "FilePath",
- table: "UserTaskAttachments");
- migrationBuilder.AlterColumn<long>(
- name: "AssignedToUserId",
- table: "UserTaskHistories",
- type: "bigint",
- nullable: false,
- defaultValue: 0L,
- oldClrType: typeof(string),
- oldType: "nvarchar(max)",
- oldNullable: true);
- }
- }
- }
|