37 lines
1 KiB
C#
37 lines
1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace LANCommander.Migrations
|
|
{
|
|
public partial class AddArchiveFileSizes : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "CompressedSize",
|
|
table: "Archive",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: 0L);
|
|
|
|
migrationBuilder.AddColumn<long>(
|
|
name: "UncompressedSize",
|
|
table: "Archive",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: 0L);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CompressedSize",
|
|
table: "Archive");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "UncompressedSize",
|
|
table: "Archive");
|
|
}
|
|
}
|
|
}
|