using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace BTCPayServer.Migrations { public partial class appdata : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Apps", columns: table => new { Id = table.Column(nullable: false), AppType = table.Column(nullable: true), Created = table.Column(nullable: false), Name = table.Column(nullable: true), Settings = table.Column(nullable: true), StoreDataId = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_Apps", x => x.Id); table.ForeignKey( name: "FK_Apps_Stores_StoreDataId", column: x => x.StoreDataId, principalTable: "Stores", principalColumn: "Id", onDelete: ReferentialAction.Restrict); }); migrationBuilder.CreateIndex( name: "IX_Apps_StoreDataId", table: "Apps", column: "StoreDataId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Apps"); } } }