39 lines
1.3 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|