2023-12-06 01:17:58 +01:00
|
|
|
using BTCPayServer.Data;
|
2023-09-11 02:59:17 +02:00
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
namespace BTCPayServer.Migrations
|
|
|
|
{
|
|
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
|
|
[Migration("20230906135844_AddArchivedFlagForStoresAndApps")]
|
|
|
|
public partial class AddArchivedFlagForStoresAndApps : Migration
|
|
|
|
{
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
|
|
name: "Archived",
|
|
|
|
table: "Stores",
|
|
|
|
nullable: false,
|
|
|
|
defaultValue: false);
|
|
|
|
|
|
|
|
migrationBuilder.AddColumn<bool>(
|
|
|
|
name: "Archived",
|
|
|
|
table: "Apps",
|
|
|
|
nullable: false,
|
|
|
|
defaultValue: false);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
name: "Archived",
|
|
|
|
table: "Stores");
|
|
|
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
name: "Archived",
|
|
|
|
table: "Apps");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|