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.
53 lines
1.4 KiB
53 lines
1.4 KiB
using Microsoft.EntityFrameworkCore.Migrations; |
|
|
|
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
|
{ |
|
public partial class Add_MetadataYear : Migration |
|
{ |
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.AddColumn<int>( |
|
"Year", |
|
"ShowMetadata", |
|
"INTEGER", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<int>( |
|
"Year", |
|
"SeasonMetadata", |
|
"INTEGER", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<int>( |
|
"Year", |
|
"MovieMetadata", |
|
"INTEGER", |
|
nullable: true); |
|
|
|
migrationBuilder.AddColumn<int>( |
|
"Year", |
|
"EpisodeMetadata", |
|
"INTEGER", |
|
nullable: true); |
|
} |
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
{ |
|
migrationBuilder.DropColumn( |
|
"Year", |
|
"ShowMetadata"); |
|
|
|
migrationBuilder.DropColumn( |
|
"Year", |
|
"SeasonMetadata"); |
|
|
|
migrationBuilder.DropColumn( |
|
"Year", |
|
"MovieMetadata"); |
|
|
|
migrationBuilder.DropColumn( |
|
"Year", |
|
"EpisodeMetadata"); |
|
} |
|
} |
|
}
|
|
|