btcpayserver/BTCPayServer.Data/Migrations/20180109021122_defaultcrypto.cs

30 lines
914 B
C#
Raw Normal View History

2020-06-29 04:44:35 +02:00
using System;
2020-06-28 10:55:27 +02:00
using System.Collections.Generic;
using BTCPayServer.Data;
2019-08-30 10:55:24 +02:00
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
2018-01-09 03:41:07 +01:00
namespace BTCPayServer.Migrations
{
2019-08-30 10:55:24 +02:00
[DbContext(typeof(ApplicationDbContext))]
[Migration("20180109021122_defaultcrypto")]
2018-01-09 03:41:07 +01:00
public partial class defaultcrypto : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
int? maxLength = this.IsMySql(migrationBuilder.ActiveProvider) ? (int?)255 : null;
2018-01-09 03:41:07 +01:00
migrationBuilder.AddColumn<string>(
name: "DefaultCrypto",
table: "Stores",
nullable: true);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DefaultCrypto",
table: "Stores");
}
}
}