fix migration
This commit is contained in:
@@ -88,8 +88,9 @@ namespace ReallifeGamemode.Database.Entities
|
|||||||
public House House { get; set; }
|
public House House { get; set; }
|
||||||
|
|
||||||
public int? JobId { get; set; }
|
public int? JobId { get; set; }
|
||||||
public int? BusSkill { get; set; }
|
|
||||||
public int? PilotSkill { get; set; }
|
public int BusSkill { get; set; }
|
||||||
|
public int PilotSkill { get; set; }
|
||||||
|
|
||||||
|
|
||||||
public int Wanteds
|
public int Wanteds
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ using ReallifeGamemode.Database.Models;
|
|||||||
namespace ReallifeGamemode.Database.Migrations
|
namespace ReallifeGamemode.Database.Migrations
|
||||||
{
|
{
|
||||||
[DbContext(typeof(DatabaseContext))]
|
[DbContext(typeof(DatabaseContext))]
|
||||||
[Migration("20200427130648_UserJobSkillBusPilot")]
|
[Migration("20200427131454_UserJobSkillBusPilot")]
|
||||||
partial class UserJobSkillBusPilot
|
partial class UserJobSkillBusPilot
|
||||||
{
|
{
|
||||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||||
@@ -1310,7 +1310,7 @@ namespace ReallifeGamemode.Database.Migrations
|
|||||||
b.Property<int?>("BankAccountId")
|
b.Property<int?>("BankAccountId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int?>("BusSkill")
|
b.Property<int>("BusSkill")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int?>("BusinessId")
|
b.Property<int?>("BusinessId")
|
||||||
@@ -1376,7 +1376,7 @@ namespace ReallifeGamemode.Database.Migrations
|
|||||||
b.Property<int>("PaydayTimer")
|
b.Property<int>("PaydayTimer")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int?>("PilotSkill")
|
b.Property<int>("PilotSkill")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int>("PlayedMinutes")
|
b.Property<int>("PlayedMinutes")
|
||||||
@@ -9,12 +9,14 @@ namespace ReallifeGamemode.Database.Migrations
|
|||||||
migrationBuilder.AddColumn<int>(
|
migrationBuilder.AddColumn<int>(
|
||||||
name: "BusSkill",
|
name: "BusSkill",
|
||||||
table: "Users",
|
table: "Users",
|
||||||
nullable: true);
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
|
|
||||||
migrationBuilder.AddColumn<int>(
|
migrationBuilder.AddColumn<int>(
|
||||||
name: "PilotSkill",
|
name: "PilotSkill",
|
||||||
table: "Users",
|
table: "Users",
|
||||||
nullable: true);
|
nullable: false,
|
||||||
|
defaultValue: 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
@@ -1308,7 +1308,7 @@ namespace ReallifeGamemode.Database.Migrations
|
|||||||
b.Property<int?>("BankAccountId")
|
b.Property<int?>("BankAccountId")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int?>("BusSkill")
|
b.Property<int>("BusSkill")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int?>("BusinessId")
|
b.Property<int?>("BusinessId")
|
||||||
@@ -1374,7 +1374,7 @@ namespace ReallifeGamemode.Database.Migrations
|
|||||||
b.Property<int>("PaydayTimer")
|
b.Property<int>("PaydayTimer")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int?>("PilotSkill")
|
b.Property<int>("PilotSkill")
|
||||||
.HasColumnType("int");
|
.HasColumnType("int");
|
||||||
|
|
||||||
b.Property<int>("PlayedMinutes")
|
b.Property<int>("PlayedMinutes")
|
||||||
|
|||||||
Reference in New Issue
Block a user