sunpengfei
2025-08-12 234b9a97eabe4fc6ebd52204ffdd575023a1736f
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
using Microsoft.EntityFrameworkCore.Migrations;
 
#nullable disable
 
namespace FlexJobApi.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class UpdateRole0805002 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<bool>(
                name: "IsDisabled",
                table: "Role",
                type: "bit",
                nullable: false,
                defaultValue: false,
                comment: "是否禁用");
 
            migrationBuilder.AddColumn<string>(
                name: "ContactNumber",
                table: "Enterprise",
                type: "nvarchar(11)",
                maxLength: 11,
                nullable: true,
                comment: "联系电话");
 
            migrationBuilder.AddColumn<string>(
                name: "Contacts",
                table: "Enterprise",
                type: "nvarchar(32)",
                maxLength: 32,
                nullable: true,
                comment: "联系人");
 
            migrationBuilder.AddColumn<string>(
                name: "Remark",
                table: "DictionaryCategory",
                type: "nvarchar(max)",
                nullable: true,
                comment: "备注");
        }
 
        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IsDisabled",
                table: "Role");
 
            migrationBuilder.DropColumn(
                name: "ContactNumber",
                table: "Enterprise");
 
            migrationBuilder.DropColumn(
                name: "Contacts",
                table: "Enterprise");
 
            migrationBuilder.DropColumn(
                name: "Remark",
                table: "DictionaryCategory");
        }
    }
}