50 lines
1.5 KiB
C#
50 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace YD_WeChatApplet.Api.Migrations
|
|
{
|
|
public partial class _20250408v1 : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Bpm",
|
|
table: "WCA_UserPreference",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0,
|
|
comment: "节拍");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SchoolCode",
|
|
table: "User",
|
|
type: "nvarchar(100)",
|
|
nullable: true,
|
|
comment: "学校编号",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(100)",
|
|
oldComment: "学校编号");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Bpm",
|
|
table: "WCA_UserPreference");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SchoolCode",
|
|
table: "User",
|
|
type: "nvarchar(100)",
|
|
nullable: false,
|
|
defaultValue: "",
|
|
comment: "学校编号",
|
|
oldClrType: typeof(string),
|
|
oldType: "nvarchar(100)",
|
|
oldNullable: true,
|
|
oldComment: "学校编号");
|
|
}
|
|
}
|
|
}
|