73 lines
2.2 KiB
C#
73 lines
2.2 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace VOL.Core.Migrations
|
|||
|
{
|
|||
|
public partial class init070 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "ActivitiesId",
|
|||
|
table: "Ai_SportsTestData",
|
|||
|
type: "int",
|
|||
|
nullable: true,
|
|||
|
comment: "活动Id");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "DataType",
|
|||
|
table: "Ai_SportsTestData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "模式类型");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "ActivitiesId",
|
|||
|
table: "Ai_ActivitiestData",
|
|||
|
type: "int",
|
|||
|
nullable: true,
|
|||
|
comment: "活动Id",
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "int",
|
|||
|
oldComment: "活动Id");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "DataType",
|
|||
|
table: "Ai_ActivitiestData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "模式类型");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "ActivitiesId",
|
|||
|
table: "Ai_SportsTestData");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "DataType",
|
|||
|
table: "Ai_SportsTestData");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "DataType",
|
|||
|
table: "Ai_ActivitiestData");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "ActivitiesId",
|
|||
|
table: "Ai_ActivitiestData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "活动Id",
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "int",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "活动Id");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|