You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
40 lines
1.4 KiB
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace EntityFrameWorkLib.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MyMigration : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "Players",
|
|
columns: table => new
|
|
{
|
|
PlayerId = table.Column<int>(type: "INTEGER", nullable: false)
|
|
.Annotation("Sqlite:Autoincrement", true),
|
|
Pseudo = table.Column<string>(type: "TEXT", nullable: false),
|
|
NbWin = table.Column<int>(type: "INTEGER", nullable: false),
|
|
NbPlayed = table.Column<int>(type: "INTEGER", nullable: false),
|
|
MaxZone = table.Column<int>(type: "INTEGER", nullable: false),
|
|
MaxPoints = table.Column<int>(type: "INTEGER", nullable: false),
|
|
NbPoints = table.Column<int>(type: "INTEGER", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_Players", x => x.PlayerId);
|
|
});
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "Players");
|
|
}
|
|
}
|
|
}
|