mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 22:46:49 +01:00
60 lines
1.9 KiB
C#
60 lines
1.9 KiB
C#
using BTCPayServer.Data;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace BTCPayServer.Migrations
|
|
{
|
|
[DbContext(typeof(ApplicationDbContext))]
|
|
[Migration("20200110064617_OpenIddictUpdate")]
|
|
public partial class OpenIddictUpdate : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Subject",
|
|
table: "OpenIddictTokens",
|
|
maxLength: 450,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 450);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Subject",
|
|
table: "OpenIddictAuthorizations",
|
|
maxLength: 450,
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 450);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Requirements",
|
|
table: "OpenIddictApplications",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Requirements",
|
|
table: "OpenIddictApplications");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Subject",
|
|
table: "OpenIddictTokens",
|
|
maxLength: 450,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 450,
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Subject",
|
|
table: "OpenIddictAuthorizations",
|
|
maxLength: 450,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldMaxLength: 450,
|
|
oldNullable: true);
|
|
}
|
|
}
|
|
}
|