mirror of https://github.com/ErsatzTV/ErsatzTV.git
17 changed files with 3968 additions and 3 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,36 @@ |
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||||
|
|
||||||
|
#nullable disable |
||||||
|
|
||||||
|
namespace ErsatzTV.Infrastructure.Migrations |
||||||
|
{ |
||||||
|
public partial class Add_ChannelGroup_ChannelCategories : Migration |
||||||
|
{ |
||||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
migrationBuilder.AddColumn<string>( |
||||||
|
name: "Categories", |
||||||
|
table: "Channel", |
||||||
|
type: "TEXT", |
||||||
|
nullable: true); |
||||||
|
|
||||||
|
migrationBuilder.AddColumn<string>( |
||||||
|
name: "Group", |
||||||
|
table: "Channel", |
||||||
|
type: "TEXT", |
||||||
|
nullable: false, |
||||||
|
defaultValue: "ErsatzTV"); |
||||||
|
} |
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||||
|
{ |
||||||
|
migrationBuilder.DropColumn( |
||||||
|
name: "Categories", |
||||||
|
table: "Channel"); |
||||||
|
|
||||||
|
migrationBuilder.DropColumn( |
||||||
|
name: "Group", |
||||||
|
table: "Channel"); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
Loading…
Reference in new issue