using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace API.Data.Migrations { /// public partial class AddDeviceIdsToReadingProfiles : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "SeriesIds", table: "AppUserReadingProfiles", type: "TEXT", nullable: true, defaultValue: "[]", oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AlterColumn( name: "LibraryIds", table: "AppUserReadingProfiles", type: "TEXT", nullable: true, defaultValue: "[]", oldClrType: typeof(string), oldType: "TEXT", oldNullable: true); migrationBuilder.AddColumn( name: "DeviceIds", table: "AppUserReadingProfiles", type: "TEXT", nullable: true, defaultValue: "[]"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DeviceIds", table: "AppUserReadingProfiles"); migrationBuilder.AlterColumn( name: "SeriesIds", table: "AppUserReadingProfiles", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true, oldDefaultValue: "[]"); migrationBuilder.AlterColumn( name: "LibraryIds", table: "AppUserReadingProfiles", type: "TEXT", nullable: true, oldClrType: typeof(string), oldType: "TEXT", oldNullable: true, oldDefaultValue: "[]"); } } }