btcpayserver/BTCPayServer.Data/Migrations/20170926073744_Settings.cs

35 lines
1 KiB
C#
Raw Normal View History

2019-08-30 17:55:24 +09:00
using BTCPayServer.Data;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
2017-09-27 14:18:09 +09:00
using System;
using System.Collections.Generic;
namespace BTCPayServer.Migrations
{
2019-08-30 17:55:24 +09:00
[DbContext(typeof(ApplicationDbContext))]
[Migration("20170926073744_Settings")]
2017-09-27 14:18:09 +09:00
public partial class Settings : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Settings",
columns: table => new
{
2018-05-10 11:56:46 +09:00
Id = table.Column<string>(nullable: false),
Value = table.Column<string>(nullable: true)
2017-09-27 14:18:09 +09:00
},
constraints: table =>
{
table.PrimaryKey("PK_Settings", x => x.Id);
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Settings");
}
}
}