11 protected override void Up(MigrationBuilder migrationBuilder)
13 ArgumentNullException.ThrowIfNull(migrationBuilder);
15 migrationBuilder.AlterColumn<
long>(
17 table:
"OAuthConnections",
21 oldClrType: typeof(
long),
25 migrationBuilder.AlterColumn<
string>(
26 name:
"AutoUpdateCron",
28 type:
"nvarchar(1000)",
31 oldClrType: typeof(
string),
32 oldType:
"nvarchar(max)",
35 migrationBuilder.AddColumn<
string>(
36 name:
"AutoStartCron",
38 type:
"nvarchar(1000)",
41 defaultValue: String.Empty);
43 migrationBuilder.AddColumn<
string>(
46 type:
"nvarchar(1000)",
49 defaultValue: String.Empty);
53 protected override void Down(MigrationBuilder migrationBuilder)
55 ArgumentNullException.ThrowIfNull(migrationBuilder);
57 migrationBuilder.DropColumn(
58 name:
"AutoStartCron",
61 migrationBuilder.DropColumn(
65 migrationBuilder.AlterColumn<
long>(
67 table:
"OAuthConnections",
70 oldClrType: typeof(
long),
73 migrationBuilder.AlterColumn<
string>(
74 name:
"AutoUpdateCron",
76 type:
"nvarchar(max)",
79 oldClrType: typeof(
string),
80 oldType:
"nvarchar(1000)",