mirror of https://github.com/ErsatzTV/ErsatzTV.git
5 changed files with 6189 additions and 1 deletions
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,40 @@
@@ -0,0 +1,40 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.MySql.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Update_MediaFilePath : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Path", |
||||
table: "MediaFile", |
||||
type: "longtext", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(255)", |
||||
oldNullable: true) |
||||
.Annotation("MySql:CharSet", "utf8mb4") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4"); |
||||
} |
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Path", |
||||
table: "MediaFile", |
||||
type: "varchar(255)", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "longtext", |
||||
oldNullable: true) |
||||
.Annotation("MySql:CharSet", "utf8mb4") |
||||
.OldAnnotation("MySql:CharSet", "utf8mb4"); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue