asg_backend/asg_form/Migrations/20230606063920_bloga.cs
杨毅 7b909de91c Revert "pg1"
This reverts commit f564205e29cd2ef046fd58a85403d3959c7ecff4.
2024-10-02 03:02:23 +08:00

39 lines
1.3 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace asg_form.Migrations
{
/// <inheritdoc />
public partial class bloga : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "F_blog",
columns: table => new
{
ID = table.Column<long>(type: "bigint", nullable: false)
.Annotation("SqlServer:Identity", "1, 1"),
title = table.Column<string>(type: "nvarchar(max)", nullable: false),
msg = table.Column<string>(type: "nvarchar(max)", nullable: false),
formuser = table.Column<string>(type: "nvarchar(max)", nullable: false),
pushtime = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_F_blog", x => x.ID);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "F_blog");
}
}
}