mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-13 03:16:46 +01:00
32 lines
920 B
C#
32 lines
920 B
C#
|
using System;
|
|||
|
using BTCPayServer.Data;
|
|||
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
namespace BTCPayServer.Migrations
|
|||
|
{
|
|||
|
[DbContext(typeof(ApplicationDbContext))]
|
|||
|
[Migration("20201002145033_AddCreateDateToUser")]
|
|||
|
public partial class AddCreateDateToUser : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<DateTimeOffset>(
|
|||
|
name: "Created",
|
|||
|
table: "AspNetUsers",
|
|||
|
nullable: true);
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
if (this.SupportDropColumn(migrationBuilder.ActiveProvider))
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Created",
|
|||
|
table: "AspNetUsers");
|
|||
|
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|