SES-154 Fix seed beacuse multiple shopkeepers cannot be active at the same time

This commit is contained in:
Karol Górzyński 2021-01-20 19:33:46 +01:00
parent 3466b54785
commit c3dda1de44
4 changed files with 29364 additions and 4 deletions

View File

@ -0,0 +1,41 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace SessionCompanion.Database.Migrations
{
public partial class shopkeepersupdate : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Shopkeepers",
keyColumn: "Id",
keyValue: 3,
column: "IsAvailable",
value: false);
migrationBuilder.UpdateData(
table: "Shopkeepers",
keyColumn: "Id",
keyValue: 5,
column: "IsAvailable",
value: false);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Shopkeepers",
keyColumn: "Id",
keyValue: 3,
column: "IsAvailable",
value: true);
migrationBuilder.UpdateData(
table: "Shopkeepers",
keyColumn: "Id",
keyValue: 5,
column: "IsAvailable",
value: true);
}
}
}

View File

@ -21554,7 +21554,7 @@ namespace SessionCompanion.Database.Migrations
new new
{ {
Id = 3, Id = 3,
IsAvailable = true, IsAvailable = false,
Name = "Bohr Twarda Zbroja" Name = "Bohr Twarda Zbroja"
}, },
new new
@ -21566,7 +21566,7 @@ namespace SessionCompanion.Database.Migrations
new new
{ {
Id = 5, Id = 5,
IsAvailable = true, IsAvailable = false,
Name = "Zielony spod Gruszkowego Lasu" Name = "Zielony spod Gruszkowego Lasu"
}, },
new new

View File

@ -863,7 +863,7 @@ namespace SessionCompanion.Database
{ {
Id = 3, Id = 3,
Name = "Bohr Twarda Zbroja", Name = "Bohr Twarda Zbroja",
IsAvailable = true IsAvailable = false
}, },
new Shopkeeper new Shopkeeper
{ {
@ -875,7 +875,7 @@ namespace SessionCompanion.Database
{ {
Id = 5, Id = 5,
Name = "Zielony spod Gruszkowego Lasu", Name = "Zielony spod Gruszkowego Lasu",
IsAvailable = true IsAvailable = false
}, },
new Shopkeeper new Shopkeeper
{ {