Titles were capped at 50 characters and the YouTube provisioner silently cut them there, which mangles anything with a feature or a remix suffix. Albums are about to make that far more visible, so the column now holds 200.
59 lines
1.9 KiB
C#
59 lines
1.9 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Musify.Infrastructure.Persistence.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class WidenTrackTitle : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Title",
|
|
table: "Tracks",
|
|
type: "character varying(200)",
|
|
maxLength: 200,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(50)",
|
|
oldMaxLength: 50);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "NormalizedTitle",
|
|
table: "Tracks",
|
|
type: "character varying(200)",
|
|
maxLength: 200,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(50)",
|
|
oldMaxLength: 50);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Title",
|
|
table: "Tracks",
|
|
type: "character varying(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(200)",
|
|
oldMaxLength: 200);
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "NormalizedTitle",
|
|
table: "Tracks",
|
|
type: "character varying(50)",
|
|
maxLength: 50,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "character varying(200)",
|
|
oldMaxLength: 200);
|
|
}
|
|
}
|
|
}
|