mirror of https://github.com/ErsatzTV/ErsatzTV.git
31 changed files with 12911 additions and 6 deletions
@ -0,0 +1,9 @@
@@ -0,0 +1,9 @@
|
||||
namespace ErsatzTV.Core.Domain; |
||||
|
||||
public class ProgramScheduleItemGraphicsElement |
||||
{ |
||||
public int ProgramScheduleItemId { get; set; } |
||||
public ProgramScheduleItem ProgramScheduleItem { get; set; } |
||||
public int GraphicsElementId { get; set; } |
||||
public GraphicsElement GraphicsElement { get; set; } |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,51 @@
@@ -0,0 +1,51 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Add_ProgramScheduleItemGraphicsElements : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.CreateTable( |
||||
name: "ProgramScheduleItemGraphicsElement", |
||||
columns: table => new |
||||
{ |
||||
ProgramScheduleItemId = table.Column<int>(type: "int", nullable: false), |
||||
GraphicsElementId = table.Column<int>(type: "int", nullable: false) |
||||
}, |
||||
constraints: table => |
||||
{ |
||||
table.PrimaryKey("PK_ProgramScheduleItemGraphicsElement", x => new { x.ProgramScheduleItemId, x.GraphicsElementId }); |
||||
table.ForeignKey( |
||||
name: "FK_ProgramScheduleItemGraphicsElement_GraphicsElement_GraphicsE~", |
||||
column: x => x.GraphicsElementId, |
||||
principalTable: "GraphicsElement", |
||||
principalColumn: "Id", |
||||
onDelete: ReferentialAction.Cascade); |
||||
table.ForeignKey( |
||||
name: "FK_ProgramScheduleItemGraphicsElement_ProgramScheduleItem_Progr~", |
||||
column: x => x.ProgramScheduleItemId, |
||||
principalTable: "ProgramScheduleItem", |
||||
principalColumn: "Id", |
||||
onDelete: ReferentialAction.Cascade); |
||||
}) |
||||
.Annotation("MySql:CharSet", "utf8mb4"); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_ProgramScheduleItemGraphicsElement_GraphicsElementId", |
||||
table: "ProgramScheduleItemGraphicsElement", |
||||
column: "GraphicsElementId"); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropTable( |
||||
name: "ProgramScheduleItemGraphicsElement"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,50 @@
@@ -0,0 +1,50 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Add_ProgramScheduleItemGraphicsElements : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.CreateTable( |
||||
name: "ProgramScheduleItemGraphicsElement", |
||||
columns: table => new |
||||
{ |
||||
ProgramScheduleItemId = table.Column<int>(type: "INTEGER", nullable: false), |
||||
GraphicsElementId = table.Column<int>(type: "INTEGER", nullable: false) |
||||
}, |
||||
constraints: table => |
||||
{ |
||||
table.PrimaryKey("PK_ProgramScheduleItemGraphicsElement", x => new { x.ProgramScheduleItemId, x.GraphicsElementId }); |
||||
table.ForeignKey( |
||||
name: "FK_ProgramScheduleItemGraphicsElement_GraphicsElement_GraphicsElementId", |
||||
column: x => x.GraphicsElementId, |
||||
principalTable: "GraphicsElement", |
||||
principalColumn: "Id", |
||||
onDelete: ReferentialAction.Cascade); |
||||
table.ForeignKey( |
||||
name: "FK_ProgramScheduleItemGraphicsElement_ProgramScheduleItem_ProgramScheduleItemId", |
||||
column: x => x.ProgramScheduleItemId, |
||||
principalTable: "ProgramScheduleItem", |
||||
principalColumn: "Id", |
||||
onDelete: ReferentialAction.Cascade); |
||||
}); |
||||
|
||||
migrationBuilder.CreateIndex( |
||||
name: "IX_ProgramScheduleItemGraphicsElement_GraphicsElementId", |
||||
table: "ProgramScheduleItemGraphicsElement", |
||||
column: "GraphicsElementId"); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.DropTable( |
||||
name: "ProgramScheduleItemGraphicsElement"); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue