Added mileage, changed all namespaces from reallife_gamemode to ReallifeGamemode

This commit is contained in:
hydrant
2019-03-06 21:12:34 +01:00
parent 13142edbb7
commit bee3497fc3
104 changed files with 1408 additions and 297 deletions

View File

@@ -4,7 +4,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using reallife_gamemode.Server.Models;
using ReallifeGamemode.Server.Models;
namespace ReallifeGamemode.Migrations
{

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,23 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace ReallifeGamemode.Migrations
{
public partial class VehicleDistanceDriven : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<float>(
name: "DistanceDriven",
table: "ServerVehicles",
nullable: false,
defaultValue: 0f);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "DistanceDriven",
table: "ServerVehicles");
}
}
}

View File

@@ -3,7 +3,7 @@ using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using reallife_gamemode.Server.Models;
using ReallifeGamemode.Server.Models;
namespace ReallifeGamemode.Migrations
{
@@ -404,6 +404,8 @@ namespace ReallifeGamemode.Migrations
b.Property<string>("Discriminator")
.IsRequired();
b.Property<float>("DistanceDriven");
b.Property<float>("Heading");
b.Property<bool>("Locked");