using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace BTCPayServer.Migrations { public partial class legacyapikey : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ApiKeys", columns: table => new { Id = table.Column(maxLength: 50, nullable: false), StoreId = table.Column(maxLength: 50, nullable: true) }, constraints: table => { table.PrimaryKey("PK_ApiKeys", x => x.Id); }); migrationBuilder.CreateIndex( name: "IX_ApiKeys_StoreId", table: "ApiKeys", column: "StoreId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ApiKeys"); } } }