using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace SharpbinV3.Server.Migrations { /// public partial class ImprovePastes : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn(name: "FilePath", table: "Pastes"); migrationBuilder.AddColumn( name: "Data", table: "Pastes", type: "BLOB", nullable: false, defaultValue: new byte[0] ); migrationBuilder.AddColumn( name: "IsCompressed", table: "Pastes", type: "INTEGER", nullable: false, defaultValue: false ); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn(name: "Data", table: "Pastes"); migrationBuilder.DropColumn(name: "IsCompressed", table: "Pastes"); migrationBuilder.AddColumn( name: "FilePath", table: "Pastes", type: "TEXT", nullable: false, defaultValue: "" ); } } }