fix db fehler
This commit is contained in:
1859
ReallifeGamemode.Database/Migrations/20200802143111_AddUserOtherAmount.Designer.cs
generated
Normal file
1859
ReallifeGamemode.Database/Migrations/20200802143111_AddUserOtherAmount.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,43 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace ReallifeGamemode.Database.Migrations
|
||||
{
|
||||
public partial class AddUserOtherAmount : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "otheramount",
|
||||
table: "Users",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
name: "trashcount",
|
||||
table: "Users",
|
||||
nullable: false,
|
||||
defaultValue: 0);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "GangOwned",
|
||||
table: "Factions",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "otheramount",
|
||||
table: "Users");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "trashcount",
|
||||
table: "Users");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "GangOwned",
|
||||
table: "Factions");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -469,6 +469,9 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.Property<int?>("BankAccountId")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<bool>("GangOwned")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.HasColumnType("varchar(32) CHARACTER SET utf8mb4")
|
||||
.HasMaxLength(32);
|
||||
@@ -1017,7 +1020,8 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.Property<float>("PositionZ")
|
||||
.HasColumnType("float");
|
||||
|
||||
b.Property<int>("Type");
|
||||
b.Property<int>("Type")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
@@ -1411,6 +1415,12 @@ namespace ReallifeGamemode.Database.Migrations
|
||||
b.Property<bool>("WeaponLicense")
|
||||
.HasColumnType("tinyint(1)");
|
||||
|
||||
b.Property<int>("otheramount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.Property<int>("trashcount")
|
||||
.HasColumnType("int");
|
||||
|
||||
b.HasKey("Id");
|
||||
|
||||
b.HasIndex("BanId");
|
||||
|
||||
Reference in New Issue
Block a user