mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace BTCPayServer.Plugins.Test.Migrations
|
|
{
|
|
[DbContext(typeof(TestPluginDbContext))]
|
|
[Migration("20201117154419_Init")]
|
|
public partial class Init : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.EnsureSchema(
|
|
name: "BTCPayServer.Plugins.Test");
|
|
|
|
migrationBuilder.CreateTable(
|
|
name: "TestPluginRecords",
|
|
schema: "BTCPayServer.Plugins.Test",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<string>(nullable: false),
|
|
Timestamp = table.Column<DateTimeOffset>(nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_TestPluginRecords", x => x.Id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "TestPluginRecords",
|
|
schema: "BTCPayServer.Plugins.Test");
|
|
}
|
|
}
|
|
}
|