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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
| using Microsoft.EntityFrameworkCore.Migrations;
|
| #nullable disable
|
| namespace FlexJobApi.Database.Migrations.Migrations
| {
| /// <inheritdoc />
| public partial class UpdateResource0806 : Migration
| {
| /// <inheritdoc />
| protected override void Up(MigrationBuilder migrationBuilder)
| {
| migrationBuilder.AlterColumn<string>(
| name: "ActionName",
| table: "Resource",
| type: "nvarchar(max)",
| nullable: true,
| comment: "委托名称",
| oldClrType: typeof(string),
| oldType: "nvarchar(max)",
| oldComment: "委托名称");
|
| migrationBuilder.AddColumn<string>(
| name: "ActionSummary",
| table: "Resource",
| type: "nvarchar(max)",
| nullable: true,
| comment: "委托摘要");
|
| migrationBuilder.AddColumn<bool>(
| name: "AllowAnonymous",
| table: "Resource",
| type: "bit",
| nullable: false,
| defaultValue: false,
| comment: "忽略权限");
|
| migrationBuilder.AddColumn<string>(
| name: "ApplicationName",
| table: "Resource",
| type: "nvarchar(max)",
| nullable: true,
| comment: "应用名称");
|
| migrationBuilder.AddColumn<string>(
| name: "ControllerSummary",
| table: "Resource",
| type: "nvarchar(max)",
| nullable: true,
| comment: "控制器摘要");
|
| migrationBuilder.AddColumn<string>(
| name: "DynamicAssemblyName",
| table: "Resource",
| type: "nvarchar(max)",
| nullable: true,
| comment: "动态程序集名称");
|
| migrationBuilder.AddColumn<string>(
| name: "RouteArea",
| table: "Resource",
| type: "nvarchar(max)",
| nullable: true,
| comment: "路由区域");
|
| migrationBuilder.AddColumn<int>(
| name: "Service",
| table: "Resource",
| type: "int",
| nullable: false,
| defaultValue: 0,
| comment: "服务");
|
| migrationBuilder.AddColumn<string>(
| name: "ServiceName",
| table: "Resource",
| type: "nvarchar(max)",
| nullable: true,
| comment: "服务名称");
| }
|
| /// <inheritdoc />
| protected override void Down(MigrationBuilder migrationBuilder)
| {
| migrationBuilder.DropColumn(
| name: "ActionSummary",
| table: "Resource");
|
| migrationBuilder.DropColumn(
| name: "AllowAnonymous",
| table: "Resource");
|
| migrationBuilder.DropColumn(
| name: "ApplicationName",
| table: "Resource");
|
| migrationBuilder.DropColumn(
| name: "ControllerSummary",
| table: "Resource");
|
| migrationBuilder.DropColumn(
| name: "DynamicAssemblyName",
| table: "Resource");
|
| migrationBuilder.DropColumn(
| name: "RouteArea",
| table: "Resource");
|
| migrationBuilder.DropColumn(
| name: "Service",
| table: "Resource");
|
| migrationBuilder.DropColumn(
| name: "ServiceName",
| table: "Resource");
|
| migrationBuilder.AlterColumn<string>(
| name: "ActionName",
| table: "Resource",
| type: "nvarchar(max)",
| nullable: false,
| defaultValue: "",
| comment: "委托名称",
| oldClrType: typeof(string),
| oldType: "nvarchar(max)",
| oldNullable: true,
| oldComment: "委托名称");
| }
| }
| }
|
|