40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace VOL.Core.Migrations
|
|
{
|
|
public partial class _20150226v2 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<DateTime>(
|
|
name: "CreateTime",
|
|
table: "S_HomeWork",
|
|
type: "datetime",
|
|
nullable: false,
|
|
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
|
|
comment: "创建时间");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "GroupId",
|
|
table: "Ai_FastJumpRopeData",
|
|
type: "nvarchar(100)",
|
|
nullable: true,
|
|
comment: "GroupId");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "CreateTime",
|
|
table: "S_HomeWork");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "GroupId",
|
|
table: "Ai_FastJumpRopeData");
|
|
}
|
|
}
|
|
}
|