Moves the remaining uncommitted work: the home gets quick mixes and a "Tus álbumes" shelf, saving a YouTube album now goes through addYoutubeAlbumToPlaylistAction instead of the SaveYouTubeAlbum command, and UserAlbum drops its unused ExternalId. The mixes section keeps its current shape (no refresh action, no badge, hidden when empty) rather than the older version the worktree carried.
49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Musify.Infrastructure.Persistence.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class RemoveUserAlbumExternalId : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_UserAlbums_OwnerUserId_ExternalId",
|
|
table: "UserAlbums");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ExternalId",
|
|
table: "UserAlbums");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_UserAlbums_OwnerUserId",
|
|
table: "UserAlbums",
|
|
column: "OwnerUserId");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_UserAlbums_OwnerUserId",
|
|
table: "UserAlbums");
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ExternalId",
|
|
table: "UserAlbums",
|
|
type: "character varying(64)",
|
|
maxLength: 64,
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_UserAlbums_OwnerUserId_ExternalId",
|
|
table: "UserAlbums",
|
|
columns: new[] { "OwnerUserId", "ExternalId" },
|
|
unique: true);
|
|
}
|
|
}
|
|
}
|