using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace ReallifeGamemode.Database.Migrations { public partial class SVars : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "failpoints", table: "Users", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "warn", table: "Users", nullable: false, defaultValue: 0); migrationBuilder.CreateTable( name: "ServerVariables", columns: table => new { Id = table.Column(nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), Variable = table.Column(nullable: true), Value = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_ServerVariables", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ServerVariables"); migrationBuilder.DropColumn( name: "failpoints", table: "Users"); migrationBuilder.DropColumn( name: "warn", table: "Users"); } } }