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