mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-01-19 10:25:53 -05:00
Co-authored-by: Amelia <77553571+Fesaa@users.noreply.github.com> Co-authored-by: DieselTech <30128380+DieselTech@users.noreply.github.com> Co-authored-by: Alex George <xzeroknightx@gmail.com> Co-authored-by: Lucas Winther <lucasw89@live.dk> Co-authored-by: Toni Kielo <toni.kielo@gmail.com> Co-authored-by: Patrick Orave <oravep@gmail.com>
70 lines
2.1 KiB
C#
70 lines
2.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace API.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddDeviceIdsToReadingProfiles : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SeriesIds",
|
|
table: "AppUserReadingProfiles",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
defaultValue: "[]",
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LibraryIds",
|
|
table: "AppUserReadingProfiles",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
defaultValue: "[]",
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "DeviceIds",
|
|
table: "AppUserReadingProfiles",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
defaultValue: "[]");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "DeviceIds",
|
|
table: "AppUserReadingProfiles");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "SeriesIds",
|
|
table: "AppUserReadingProfiles",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true,
|
|
oldDefaultValue: "[]");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "LibraryIds",
|
|
table: "AppUserReadingProfiles",
|
|
type: "TEXT",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldNullable: true,
|
|
oldDefaultValue: "[]");
|
|
}
|
|
}
|
|
}
|