fix db fehler

This commit is contained in:
hydrant
2020-08-02 16:31:24 +02:00
parent 71e91e9275
commit f88640f222
5 changed files with 1955 additions and 20 deletions

View File

@@ -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");
}
}
}