using Microsoft.EntityFrameworkCore.Migrations; using System; using System.Collections.Generic; namespace NadekoBot.Migrations { public partial class currencylevelupreward : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "XpCurrencyReward", columns: table => new { Id = table.Column(type: "INTEGER", nullable: false) .Annotation("Sqlite:Autoincrement", true), Amount = table.Column(type: "INTEGER", nullable: false), DateAdded = table.Column(type: "TEXT", nullable: true), Level = table.Column(type: "INTEGER", nullable: false), XpSettingsId = table.Column(type: "INTEGER", nullable: false) }, constraints: table => { table.PrimaryKey("PK_XpCurrencyReward", x => x.Id); table.ForeignKey( name: "FK_XpCurrencyReward_XpSettings_XpSettingsId", column: x => x.XpSettingsId, principalTable: "XpSettings", principalColumn: "Id", onDelete: ReferentialAction.Cascade); }); migrationBuilder.CreateIndex( name: "IX_XpCurrencyReward_XpSettingsId", table: "XpCurrencyReward", column: "XpSettingsId"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "XpCurrencyReward"); } } }