34 lines
1.0 KiB
C#
34 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace GWMS.User.Migrations
|
|
{
|
|
public partial class ReAddTableCounter4Identity : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "DbSetCounts",
|
|
columns: table => new
|
|
{
|
|
TableName = table.Column<string>(type: "varchar(255)", nullable: false)
|
|
.Annotation("MySql:CharSet", "utf8mb4"),
|
|
Count = table.Column<int>(type: "int", nullable: false)
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_DbSetCounts", x => x.TableName);
|
|
})
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "DbSetCounts");
|
|
}
|
|
}
|
|
}
|