sunpengfei
2025-08-01 5a657f2ef43afc5a2a284e7b75d7db91e534c020
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using System;
using Microsoft.EntityFrameworkCore.Migrations;
 
#nullable disable
 
namespace FlexJobApi.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class UpdateTreeData0801 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "BindField",
                table: "Menu");
 
            migrationBuilder.AlterColumn<Guid>(
                name: "UserAuthId",
                table: "UserInfo",
                type: "uniqueidentifier",
                nullable: false,
                comment: "用户Id",
                oldClrType: typeof(Guid),
                oldType: "uniqueidentifier");
 
            migrationBuilder.AddColumn<string>(
                name: "Path",
                table: "Menu",
                type: "nvarchar(max)",
                nullable: true);
 
            migrationBuilder.AddColumn<string>(
                name: "Width",
                table: "Menu",
                type: "nvarchar(max)",
                nullable: true);
 
            migrationBuilder.AddColumn<string>(
                name: "Path",
                table: "DictionaryData",
                type: "nvarchar(max)",
                nullable: true);
 
            migrationBuilder.AddColumn<string>(
                name: "Path",
                table: "Department",
                type: "nvarchar(max)",
                nullable: true);
        }
 
        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Path",
                table: "Menu");
 
            migrationBuilder.DropColumn(
                name: "Width",
                table: "Menu");
 
            migrationBuilder.DropColumn(
                name: "Path",
                table: "DictionaryData");
 
            migrationBuilder.DropColumn(
                name: "Path",
                table: "Department");
 
            migrationBuilder.AlterColumn<Guid>(
                name: "UserAuthId",
                table: "UserInfo",
                type: "uniqueidentifier",
                nullable: false,
                oldClrType: typeof(Guid),
                oldType: "uniqueidentifier",
                oldComment: "用户Id");
 
            migrationBuilder.AddColumn<string>(
                name: "BindField",
                table: "Menu",
                type: "nvarchar(max)",
                nullable: true,
                comment: "绑定字段");
        }
    }
}