using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Cowain.TestProject.Migrations { /// public partial class baking_mode_lenght : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "WaterValue", table: "battery_info", type: "varchar(200)", maxLength: 200, nullable: true, oldClrType: typeof(string), oldType: "longtext", oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "Status", table: "battery_info", type: "varchar(200)", maxLength: 200, nullable: true, oldClrType: typeof(string), oldType: "longtext", oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "DataValue", table: "baking_info", type: "varchar(200)", maxLength: 200, nullable: true, oldClrType: typeof(string), oldType: "longtext", oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.UpdateData( table: "user", keyColumn: "Id", keyValue: 1, column: "CreateTime", value: new DateTime(2026, 1, 27, 15, 9, 15, 656, DateTimeKind.Local).AddTicks(622)); migrationBuilder.UpdateData( table: "user_role", keyColumn: "Id", keyValue: 1, column: "CreateTime", value: new DateTime(2026, 1, 27, 15, 9, 15, 660, DateTimeKind.Local).AddTicks(9473)); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "WaterValue", table: "battery_info", type: "longtext", nullable: true, oldClrType: typeof(string), oldType: "varchar(200)", oldMaxLength: 200, oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "Status", table: "battery_info", type: "longtext", nullable: true, oldClrType: typeof(string), oldType: "varchar(200)", oldMaxLength: 200, oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AlterColumn( name: "DataValue", table: "baking_info", type: "longtext", nullable: true, oldClrType: typeof(string), oldType: "varchar(200)", oldMaxLength: 200, oldNullable: true) .Annotation("MySql:CharSet", "utf8mb4") .OldAnnotation("MySql:CharSet", "utf8mb4"); migrationBuilder.UpdateData( table: "user", keyColumn: "Id", keyValue: 1, column: "CreateTime", value: new DateTime(2026, 1, 27, 15, 6, 49, 534, DateTimeKind.Local).AddTicks(5788)); migrationBuilder.UpdateData( table: "user_role", keyColumn: "Id", keyValue: 1, column: "CreateTime", value: new DateTime(2026, 1, 27, 15, 6, 49, 543, DateTimeKind.Local).AddTicks(1528)); } } }