YD_SmartSports.Api/VOL.Core/Migrations/20241005150008_init079.cs

131 lines
4.0 KiB
C#
Raw Permalink Normal View History

2025-06-06 16:00:39 +08:00
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init079 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "CreateDate",
table: "S_SubmittedAssignments");
migrationBuilder.DropColumn(
name: "Creator",
table: "S_SubmittedAssignments");
migrationBuilder.DropColumn(
name: "Modifier",
table: "S_SubmittedAssignments");
migrationBuilder.DropColumn(
name: "ModifyDate",
table: "S_SubmittedAssignments");
migrationBuilder.DropColumn(
name: "Remarks",
table: "S_SubmittedAssignments");
migrationBuilder.DropColumn(
name: "CreateDate",
table: "S_HomeWorkStudents");
migrationBuilder.DropColumn(
name: "Creator",
table: "S_HomeWorkStudents");
migrationBuilder.DropColumn(
name: "Modifier",
table: "S_HomeWorkStudents");
migrationBuilder.DropColumn(
name: "ModifyDate",
table: "S_HomeWorkStudents");
migrationBuilder.DropColumn(
name: "Remarks",
table: "S_HomeWorkStudents");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTime>(
name: "CreateDate",
table: "S_SubmittedAssignments",
type: "datetime",
nullable: true,
comment: "创建时间");
migrationBuilder.AddColumn<int>(
name: "Creator",
table: "S_SubmittedAssignments",
type: "int)",
nullable: false,
defaultValue: 0,
comment: "创建人");
migrationBuilder.AddColumn<int>(
name: "Modifier",
table: "S_SubmittedAssignments",
type: "int)",
nullable: false,
defaultValue: 0,
comment: "修改人");
migrationBuilder.AddColumn<DateTime>(
name: "ModifyDate",
table: "S_SubmittedAssignments",
type: "datetime",
nullable: true,
comment: "修改时间");
migrationBuilder.AddColumn<string>(
name: "Remarks",
table: "S_SubmittedAssignments",
type: "text",
nullable: true,
comment: "备注");
migrationBuilder.AddColumn<DateTime>(
name: "CreateDate",
table: "S_HomeWorkStudents",
type: "datetime",
nullable: true,
comment: "创建时间");
migrationBuilder.AddColumn<int>(
name: "Creator",
table: "S_HomeWorkStudents",
type: "int)",
nullable: false,
defaultValue: 0,
comment: "创建人");
migrationBuilder.AddColumn<int>(
name: "Modifier",
table: "S_HomeWorkStudents",
type: "int)",
nullable: false,
defaultValue: 0,
comment: "修改人");
migrationBuilder.AddColumn<DateTime>(
name: "ModifyDate",
table: "S_HomeWorkStudents",
type: "datetime",
nullable: true,
comment: "修改时间");
migrationBuilder.AddColumn<string>(
name: "Remarks",
table: "S_HomeWorkStudents",
type: "text",
nullable: true,
comment: "备注");
}
}
}