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.
47 lines
1.4 KiB
47 lines
1.4 KiB
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
namespace ErsatzTV.Infrastructure.Migrations |
|
{ |
|
public partial class Update_ArtistMetadata_FK : Migration |
|
{ |
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.AlterColumn<int>( |
|
"ArtistId", |
|
"MusicVideo", |
|
"INTEGER", |
|
nullable: false, |
|
oldClrType: typeof(int), |
|
oldType: "INTEGER", |
|
oldNullable: true); |
|
|
|
migrationBuilder.AlterColumn<int>( |
|
"ArtistId", |
|
"ArtistMetadata", |
|
"INTEGER", |
|
nullable: false, |
|
oldClrType: typeof(int), |
|
oldType: "INTEGER", |
|
oldNullable: true); |
|
} |
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.AlterColumn<int>( |
|
"ArtistId", |
|
"MusicVideo", |
|
"INTEGER", |
|
nullable: true, |
|
oldClrType: typeof(int), |
|
oldType: "INTEGER"); |
|
|
|
migrationBuilder.AlterColumn<int>( |
|
"ArtistId", |
|
"ArtistMetadata", |
|
"INTEGER", |
|
nullable: true, |
|
oldClrType: typeof(int), |
|
oldType: "INTEGER"); |
|
} |
|
} |
|
}
|
|
|