38 lines
1.4 KiB
C#
38 lines
1.4 KiB
C#
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<int>(nullable: false)
|
|
.Annotation("MySql:ValueGenerationStrategy", MySqlValueGenerationStrategy.IdentityColumn),
|
|
FactionId = table.Column<int>(nullable: true),
|
|
Owner = table.Column<string>(nullable: true),
|
|
Name = table.Column<string>(nullable: true),
|
|
X = table.Column<float>(nullable: false),
|
|
Y = table.Column<float>(nullable: false),
|
|
Rotation = table.Column<float>(nullable: false),
|
|
Range = table.Column<float>(nullable: false),
|
|
Color = table.Column<int>(nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Turfs", x => x.Id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Turfs");
|
|
}
|
|
}
|
|
}
|