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:
"varchar(1000)",
31 oldClrType: typeof(
string),
32 oldType:
"varchar(10000)",
34 .Annotation(
"MySql:CharSet",
"utf8mb4")
35 .OldAnnotation(
"MySql:CharSet",
"utf8mb4");
37 migrationBuilder.AddColumn<
string>(
38 name:
"AutoStartCron",
40 type:
"varchar(1000)",
43 defaultValue: String.Empty)
44 .Annotation(
"MySql:CharSet",
"utf8mb4");
46 migrationBuilder.AddColumn<
string>(
49 type:
"varchar(1000)",
52 defaultValue: String.Empty)
53 .Annotation(
"MySql:CharSet",
"utf8mb4");
57 protected override void Down(MigrationBuilder migrationBuilder)
59 ArgumentNullException.ThrowIfNull(migrationBuilder);
61 migrationBuilder.DropColumn(
62 name:
"AutoStartCron",
65 migrationBuilder.DropColumn(
69 migrationBuilder.AlterColumn<
long>(
71 table:
"OAuthConnections",
74 oldClrType: typeof(
long),
77 migrationBuilder.AlterColumn<
string>(
78 name:
"AutoUpdateCron",
80 type:
"varchar(10000)",
83 oldClrType: typeof(
string),
84 oldType:
"varchar(1000)",
86 .Annotation(
"MySql:CharSet",
"utf8mb4")
87 .OldAnnotation(
"MySql:CharSet",
"utf8mb4");