mirror of https://github.com/ErsatzTV/ErsatzTV.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.4 KiB
48 lines
1.4 KiB
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
#nullable disable |
|
|
|
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
|
{ |
|
/// <inheritdoc /> |
|
public partial class Update_SongMetadataParity : Migration |
|
{ |
|
/// <inheritdoc /> |
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.RenameColumn( |
|
name: "Date", |
|
table: "SongMetadata", |
|
newName: "Comment"); |
|
|
|
migrationBuilder.RenameColumn( |
|
name: "Artist", |
|
table: "SongMetadata", |
|
newName: "Artists"); |
|
|
|
migrationBuilder.RenameColumn( |
|
name: "AlbumArtist", |
|
table: "SongMetadata", |
|
newName: "AlbumArtists"); |
|
} |
|
|
|
/// <inheritdoc /> |
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.RenameColumn( |
|
name: "Comment", |
|
table: "SongMetadata", |
|
newName: "Date"); |
|
|
|
migrationBuilder.RenameColumn( |
|
name: "Artists", |
|
table: "SongMetadata", |
|
newName: "Artist"); |
|
|
|
migrationBuilder.RenameColumn( |
|
name: "AlbumArtists", |
|
table: "SongMetadata", |
|
newName: "AlbumArtist"); |
|
} |
|
} |
|
}
|
|
|