using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; namespace ReallifeGamemode.Database.Migrations { public partial class Turfs : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "Turfs", columns: table => new { Id = table.Column(nullable: false) .Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn), FactionId = table.Column(nullable: true), Owner = table.Column(nullable: true), Name = table.Column(nullable: true), X = table.Column(nullable: false), Y = table.Column(nullable: false), Rotation = table.Column(nullable: false), Range = table.Column(nullable: false), Color = table.Column(nullable: false) }, constraints: table => { table.PrimaryKey("PK_Turfs", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "Turfs"); } } }