using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Moonlight.ApiServer.Database.Migrations { /// public partial class RemovedUnusedFieldsInUserModel : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "AccessToken", schema: "Core", table: "Users"); migrationBuilder.DropColumn( name: "RefreshTimestamp", schema: "Core", table: "Users"); migrationBuilder.DropColumn( name: "RefreshToken", schema: "Core", table: "Users"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "AccessToken", schema: "Core", table: "Users", type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( name: "RefreshTimestamp", schema: "Core", table: "Users", type: "datetime(6)", nullable: false, defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified)); migrationBuilder.AddColumn( name: "RefreshToken", schema: "Core", table: "Users", type: "longtext", nullable: false) .Annotation("MySql:CharSet", "utf8mb4"); } } }