37 lines
1.4 KiB
C#
37 lines
1.4 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class _20250514v2 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.CreateTable(
|
|
name: "G_Article",
|
|
columns: table => new
|
|
{
|
|
Id = table.Column<int>(type: "int", nullable: false, comment: "Id")
|
|
.Annotation("SqlServer:Identity", "1, 1"),
|
|
Tiele = table.Column<string>(type: "nvarchar(1000)", nullable: true, comment: "文章标题"),
|
|
Abstract = table.Column<string>(type: "nvarchar(2000)", nullable: true, comment: "摘要"),
|
|
CoverImage = table.Column<string>(type: "nvarchar(1000)", nullable: true, comment: "封面图"),
|
|
ArticleUrl = table.Column<string>(type: "nvarchar(1000)", nullable: true, comment: "文章地址"),
|
|
UpdateDate = table.Column<DateTime>(type: "datetime", nullable: false, comment: "更新时间")
|
|
},
|
|
constraints: table =>
|
|
{
|
|
table.PrimaryKey("PK_G_Article", x => x.Id);
|
|
});
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropTable(
|
|
name: "G_Article");
|
|
}
|
|
}
|
|
}
|