session-companion/SessionCompanion/SessionCompanion.Database/Migrations/20210104000353_SeedStatistics.cs

164 lines
6.2 KiB
C#
Raw Permalink Normal View History

2021-01-04 01:05:45 +01:00
using Microsoft.EntityFrameworkCore.Migrations;
namespace SessionCompanion.Database.Migrations
{
public partial class SeedStatistics : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "Charismas",
columns: new[] { "Id", "CanDeception", "CanIntimidation", "CanPerformance", "CanPersuasion", "CanSaveThrows", "CharacterId", "Deception", "Intimidation", "Modification", "Performance", "Persuasion", "SavingThrows", "Value" },
values: new object[,]
{
{ 1, false, true, true, false, false, 1, 0, 1, 3, 2, 0, 0, 10 },
{ 2, true, true, true, false, true, 2, 1, 1, 5, 2, 0, 3, 11 },
{ 3, false, false, true, true, false, 3, 0, 4, -2, 2, 1, 0, 5 }
});
migrationBuilder.InsertData(
table: "Constitutions",
columns: new[] { "Id", "CanSaveThrows", "CharacterId", "Modification", "SavingThrows", "Value" },
values: new object[,]
{
{ 1, true, 1, 4, 2, 11 },
{ 2, true, 2, 4, 1, 9 },
{ 3, true, 3, 1, 2, 12 }
});
migrationBuilder.InsertData(
table: "Dexterities",
columns: new[] { "Id", "Acrobatics", "CanAcrobatics", "CanSaveThrows", "CanSleightOfHand", "CanStealth", "CharacterId", "Modification", "SavingThrows", "SleightOfHand", "Stealth", "Value" },
values: new object[,]
{
{ 2, 1, true, true, true, true, 2, 2, 2, 2, 2, 11 },
{ 3, 0, false, true, true, true, 3, 0, 2, 1, 2, 5 },
{ 1, 3, true, true, true, true, 1, 1, 4, 1, 2, 10 }
});
migrationBuilder.InsertData(
table: "Intelligences",
columns: new[] { "Id", "Arcana", "CanArcana", "CanHistory", "CanInvestigation", "CanNature", "CanReligion", "CanSaveThrows", "CharacterId", "History", "Investigation", "Modification", "Nature", "Religion", "SavingThrows", "Value" },
values: new object[,]
{
{ 1, 1, true, true, false, true, true, true, 1, 4, 0, -2, 1, 3, 1, 6 },
{ 2, 1, true, true, false, false, true, true, 2, 1, 0, 0, 0, 3, 1, 10 },
{ 3, 2, true, false, false, true, true, true, 3, 0, 0, 2, 2, 2, 1, 10 }
});
migrationBuilder.InsertData(
table: "Strengths",
columns: new[] { "Id", "Athletics", "CanAthletics", "CanSaveThrows", "CharacterId", "Modification", "SavingThrows", "Value" },
values: new object[,]
{
{ 1, 2, true, false, 1, 1, 0, 10 },
{ 2, 2, true, true, 2, 3, 2, 11 },
{ 3, 1, true, true, 3, 0, 2, 5 }
});
migrationBuilder.InsertData(
table: "Wisdoms",
columns: new[] { "Id", "AnimalHandling", "CanAnimalHandling", "CanInsight", "CanMedicine", "CanPerception", "CanSaveThrows", "CanSurvival", "CharacterId", "Insight", "Medicine", "Modification", "Perception", "SavingThrows", "Survival", "Value" },
values: new object[,]
{
{ 2, 2, true, true, false, true, true, true, 2, 2, 0, 2, 2, 1, 6, 9 },
{ 1, 2, true, true, false, true, true, true, 1, 1, 0, 3, 5, 1, 2, 11 },
{ 3, 0, false, true, true, true, true, true, 3, 1, 2, -3, 5, 1, 2, 6 }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Charismas",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Charismas",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Charismas",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Constitutions",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Constitutions",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Constitutions",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Dexterities",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Dexterities",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Dexterities",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Intelligences",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Intelligences",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Intelligences",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Strengths",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Strengths",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Strengths",
keyColumn: "Id",
keyValue: 3);
migrationBuilder.DeleteData(
table: "Wisdoms",
keyColumn: "Id",
keyValue: 1);
migrationBuilder.DeleteData(
table: "Wisdoms",
keyColumn: "Id",
keyValue: 2);
migrationBuilder.DeleteData(
table: "Wisdoms",
keyColumn: "Id",
keyValue: 3);
}
}
}