Skip to content

Commit

Permalink
Merge pull request #412 from classtranscribe/AddASLVideo3
Browse files Browse the repository at this point in the history
Add asl video3
  • Loading branch information
angrave authored Nov 8, 2023
2 parents 633b7fd + 2a7b4c4 commit 6da0707
Show file tree
Hide file tree
Showing 8 changed files with 4,003 additions and 7 deletions.
1,887 changes: 1,887 additions & 0 deletions ClassTranscribeDatabase/Migrations/20231011192212_aslvideo3.Designer.cs

Large diffs are not rendered by default.

82 changes: 82 additions & 0 deletions ClassTranscribeDatabase/Migrations/20231011192212_aslvideo3.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
using Microsoft.EntityFrameworkCore.Migrations;

namespace ClassTranscribeDatabase.Migrations
{
public partial class aslvideo3 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "ASLVideoId",
table: "Videos",
nullable: true);

migrationBuilder.AddColumn<string>(
name: "ProcessedASLVideoId",
table: "Videos",
nullable: true);

migrationBuilder.AddColumn<string>(
name: "ProcessingLog",
table: "Videos",
nullable: true);

migrationBuilder.CreateIndex(
name: "IX_Videos_ASLVideoId",
table: "Videos",
column: "ASLVideoId");

migrationBuilder.CreateIndex(
name: "IX_Videos_ProcessedASLVideoId",
table: "Videos",
column: "ProcessedASLVideoId");

migrationBuilder.AddForeignKey(
name: "FK_Videos_FileRecords_ASLVideoId",
table: "Videos",
column: "ASLVideoId",
principalTable: "FileRecords",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);

migrationBuilder.AddForeignKey(
name: "FK_Videos_FileRecords_ProcessedASLVideoId",
table: "Videos",
column: "ProcessedASLVideoId",
principalTable: "FileRecords",
principalColumn: "Id",
onDelete: ReferentialAction.Restrict);
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Videos_FileRecords_ASLVideoId",
table: "Videos");

migrationBuilder.DropForeignKey(
name: "FK_Videos_FileRecords_ProcessedASLVideoId",
table: "Videos");

migrationBuilder.DropIndex(
name: "IX_Videos_ASLVideoId",
table: "Videos");

migrationBuilder.DropIndex(
name: "IX_Videos_ProcessedASLVideoId",
table: "Videos");

migrationBuilder.DropColumn(
name: "ASLVideoId",
table: "Videos");

migrationBuilder.DropColumn(
name: "ProcessedASLVideoId",
table: "Videos");

migrationBuilder.DropColumn(
name: "ProcessingLog",
table: "Videos");
}
}
}
Loading

0 comments on commit 6da0707

Please sign in to comment.