Added mileage, changed all namespaces from reallife_gamemode to ReallifeGamemode
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
1002
ReallifeGamemode.Server/Migrations/20190306194826_VehicleDistanceDriven.Designer.cs
generated
Normal file
1002
ReallifeGamemode.Server/Migrations/20190306194826_VehicleDistanceDriven.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user