using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DbConsole.Migrations
{
///
public partial class MyMigration : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "Players",
columns: table => new
{
PlayerId = table.Column(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Pseudo = table.Column(type: "TEXT", nullable: false),
NbWin = table.Column(type: "INTEGER", nullable: false),
NbPlayed = table.Column(type: "INTEGER", nullable: false),
MaxZone = table.Column(type: "INTEGER", nullable: false),
MaxPoints = table.Column(type: "INTEGER", nullable: false),
NbPoints = table.Column(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_Players", x => x.PlayerId);
});
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "Players");
}
}
}