50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace MinAttest.Infrastructure.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddAttestContentColumns : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<byte[]>(
|
|
name: "Content",
|
|
table: "Attests",
|
|
type: "varbinary(max)",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "ContentLength",
|
|
table: "Attests",
|
|
type: "bigint",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ContentType",
|
|
table: "Attests",
|
|
type: "nvarchar(255)",
|
|
maxLength: 255,
|
|
nullable: true);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Content",
|
|
table: "Attests");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ContentLength",
|
|
table: "Attests");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ContentType",
|
|
table: "Attests");
|
|
}
|
|
}
|
|
}
|