| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
-
- #nullable disable
-
- namespace Diligent.WebAPI.Data.Migrations
- {
- public partial class FileEntityChanged : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "Extension",
- table: "Files");
-
- migrationBuilder.DropColumn(
- name: "Name",
- table: "Files");
-
- migrationBuilder.DropColumn(
- name: "Size",
- table: "Files");
-
- migrationBuilder.AddColumn<Guid>(
- name: "DocumentId",
- table: "Files",
- type: "uniqueidentifier",
- nullable: false,
- defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));
- }
-
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "DocumentId",
- table: "Files");
-
- migrationBuilder.AddColumn<string>(
- name: "Extension",
- table: "Files",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "");
-
- migrationBuilder.AddColumn<string>(
- name: "Name",
- table: "Files",
- type: "nvarchar(max)",
- nullable: false,
- defaultValue: "");
-
- migrationBuilder.AddColumn<long>(
- name: "Size",
- table: "Files",
- type: "bigint",
- nullable: false,
- defaultValue: 0L);
- }
- }
- }
|