using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Apimanager_backend.Migrations { /// public partial class add_user_Avatar : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "Avatar", table: "Users", type: "longtext", nullable: true) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.UpdateData( table: "Users", keyColumn: "Id", keyValue: -1, columns: new[] { "Avatar", "CreatedAt" }, values: new object[] { null, new DateTime(2025, 7, 31, 10, 49, 29, 419, DateTimeKind.Utc).AddTicks(6892) }); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Avatar", table: "Users"); migrationBuilder.UpdateData( table: "Users", keyColumn: "Id", keyValue: -1, column: "CreatedAt", value: new DateTime(2025, 7, 31, 7, 40, 33, 590, DateTimeKind.Utc).AddTicks(5484)); } } }