remove unused servervehicle column
This commit is contained in:
@@ -27,7 +27,7 @@ namespace ReallifeGamemode.Server.Entities
|
|||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return "Fraktions Fahrzeug | Fraktion: " + GetFaction().Name;
|
return "Fraktions Fahrzeug | Fraktion: " + Faction.Name;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -28,9 +28,9 @@ namespace ReallifeGamemode.Server.Extensions
|
|||||||
if (!client.IsLoggedIn()) return null;
|
if (!client.IsLoggedIn()) return null;
|
||||||
return context
|
return context
|
||||||
.Users
|
.Users
|
||||||
.Include(u => u.Faction)
|
//.Include(u => u.Faction)
|
||||||
.Include(u => u.FactionRank)
|
//.Include(u => u.FactionRank)
|
||||||
.Include(u => u.Group)
|
//.Include(u => u.Group)
|
||||||
.Where(u => u.Name == client.Name)
|
.Where(u => u.Name == client.Name)
|
||||||
.FirstOrDefault();
|
.FirstOrDefault();
|
||||||
}
|
}
|
||||||
|
|||||||
1143
ReallifeGamemode.Server/Migrations/20190513111017_UnusedColumnRemove.Designer.cs
generated
Normal file
1143
ReallifeGamemode.Server/Migrations/20190513111017_UnusedColumnRemove.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,22 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
namespace ReallifeGamemode.Migrations
|
||||||
|
{
|
||||||
|
public partial class UnusedColumnRemove : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ShopId",
|
||||||
|
table: "ServerVehicles");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "ShopId",
|
||||||
|
table: "ServerVehicles",
|
||||||
|
nullable: true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,7 +14,7 @@ namespace ReallifeGamemode.Migrations
|
|||||||
{
|
{
|
||||||
#pragma warning disable 612, 618
|
#pragma warning disable 612, 618
|
||||||
modelBuilder
|
modelBuilder
|
||||||
.HasAnnotation("ProductVersion", "2.2.0-rtm-35687")
|
.HasAnnotation("ProductVersion", "2.2.4-servicing-10062")
|
||||||
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
.HasAnnotation("Relational:MaxIdentifierLength", 64);
|
||||||
|
|
||||||
modelBuilder.Entity("ReallifeGamemode.Server.Entities.ATM", b =>
|
modelBuilder.Entity("ReallifeGamemode.Server.Entities.ATM", b =>
|
||||||
@@ -957,8 +957,6 @@ namespace ReallifeGamemode.Migrations
|
|||||||
|
|
||||||
b.Property<int>("Price");
|
b.Property<int>("Price");
|
||||||
|
|
||||||
b.Property<int?>("ShopId");
|
|
||||||
|
|
||||||
b.ToTable("ShopVehicles");
|
b.ToTable("ShopVehicles");
|
||||||
|
|
||||||
b.HasDiscriminator().HasValue("ShopVehicle");
|
b.HasDiscriminator().HasValue("ShopVehicle");
|
||||||
|
|||||||
Reference in New Issue
Block a user