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