SES-154 Fix seed beacuse multiple shopkeepers cannot be active at the same time
This commit is contained in:
parent
3466b54785
commit
c3dda1de44
29319
SessionCompanion/SessionCompanion.Database/Migrations/20210120183221_shopkeepers-update.Designer.cs
generated
Normal file
29319
SessionCompanion/SessionCompanion.Database/Migrations/20210120183221_shopkeepers-update.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
@ -21554,7 +21554,7 @@ namespace SessionCompanion.Database.Migrations
|
||||
new
|
||||
{
|
||||
Id = 3,
|
||||
IsAvailable = true,
|
||||
IsAvailable = false,
|
||||
Name = "Bohr Twarda Zbroja"
|
||||
},
|
||||
new
|
||||
@ -21566,7 +21566,7 @@ namespace SessionCompanion.Database.Migrations
|
||||
new
|
||||
{
|
||||
Id = 5,
|
||||
IsAvailable = true,
|
||||
IsAvailable = false,
|
||||
Name = "Zielony spod Gruszkowego Lasu"
|
||||
},
|
||||
new
|
||||
|
@ -863,7 +863,7 @@ namespace SessionCompanion.Database
|
||||
{
|
||||
Id = 3,
|
||||
Name = "Bohr Twarda Zbroja",
|
||||
IsAvailable = true
|
||||
IsAvailable = false
|
||||
},
|
||||
new Shopkeeper
|
||||
{
|
||||
@ -875,7 +875,7 @@ namespace SessionCompanion.Database
|
||||
{
|
||||
Id = 5,
|
||||
Name = "Zielony spod Gruszkowego Lasu",
|
||||
IsAvailable = true
|
||||
IsAvailable = false
|
||||
},
|
||||
new Shopkeeper
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user