mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-24 06:47:50 +01:00
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
|
using System;
|
|||
|
using BTCPayServer.Data;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
namespace BTCPayServer.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(ApplicationDbContext))]
|
|||
|
[Migration("20200413052418_PlannedTransactions")]
|
|||
|
public partial class PlannedTransactions : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.CreateTable(
|
|||
|
name: "PlannedTransactions",
|
|||
|
columns: table => new
|
|||
|
{
|
|||
|
Id = table.Column<string>(maxLength: 100, nullable: false),
|
|||
|
BroadcastAt = table.Column<DateTimeOffset>(nullable: false),
|
|||
|
Blob = table.Column<byte[]>(nullable: true)
|
|||
|
},
|
|||
|
constraints: table =>
|
|||
|
{
|
|||
|
table.PrimaryKey("PK_PlannedTransactions", x => x.Id);
|
|||
|
});
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropTable(
|
|||
|
name: "PlannedTransactions");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|