* generate (case-insensitive) unique names for fields that should be unique * move name case-insensitivity down to schema level * update changelog
680 lines
25 KiB
C#
680 lines
25 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ErsatzTV.Infrastructure.MySql.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class Update_CaseSensitivity : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "TraktList",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "TemplateGroup",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Template",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "SmartCollection",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Title",
|
|
table: "ShowMetadata",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "RerunCollection",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "ProgramSchedule",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Playlist",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "MultiCollection",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Title",
|
|
table: "MovieMetadata",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Guid",
|
|
table: "MetadataGuid",
|
|
type: "varchar(128)",
|
|
maxLength: 128,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "FillerPreset",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "DecoTemplateGroup",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "DecoTemplate",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "DecoGroup",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Deco",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Collection",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "ChannelWatermark",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Channel",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "BlockGroup",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Block",
|
|
type: "varchar(50)",
|
|
maxLength: 50,
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Title",
|
|
table: "ArtistMetadata",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext",
|
|
oldNullable: true)
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_TraktList_Name",
|
|
table: "TraktList",
|
|
column: "Name");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_ShowMetadata_Title",
|
|
table: "ShowMetadata",
|
|
column: "Title");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_RerunCollection_Name",
|
|
table: "RerunCollection",
|
|
column: "Name",
|
|
unique: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MultiCollection_Name",
|
|
table: "MultiCollection",
|
|
column: "Name",
|
|
unique: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MovieMetadata_Title",
|
|
table: "MovieMetadata",
|
|
column: "Title");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_MetadataGuid_Guid",
|
|
table: "MetadataGuid",
|
|
column: "Guid");
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_FillerPreset_Name",
|
|
table: "FillerPreset",
|
|
column: "Name",
|
|
unique: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Collection_Name",
|
|
table: "Collection",
|
|
column: "Name",
|
|
unique: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_ChannelWatermark_Name",
|
|
table: "ChannelWatermark",
|
|
column: "Name",
|
|
unique: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_ArtistMetadata_Title",
|
|
table: "ArtistMetadata",
|
|
column: "Title");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_TraktList_Name",
|
|
table: "TraktList");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_ShowMetadata_Title",
|
|
table: "ShowMetadata");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_RerunCollection_Name",
|
|
table: "RerunCollection");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_MultiCollection_Name",
|
|
table: "MultiCollection");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_MovieMetadata_Title",
|
|
table: "MovieMetadata");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_MetadataGuid_Guid",
|
|
table: "MetadataGuid");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_FillerPreset_Name",
|
|
table: "FillerPreset");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Collection_Name",
|
|
table: "Collection");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_ChannelWatermark_Name",
|
|
table: "ChannelWatermark");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_ArtistMetadata_Title",
|
|
table: "ArtistMetadata");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "TraktList",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "TemplateGroup",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Template",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "SmartCollection",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
collation: "utf8mb4_general_ci",
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Title",
|
|
table: "ShowMetadata",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "RerunCollection",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "ProgramSchedule",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Playlist",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "MultiCollection",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Title",
|
|
table: "MovieMetadata",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Guid",
|
|
table: "MetadataGuid",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(128)",
|
|
oldMaxLength: 128,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "FillerPreset",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "DecoTemplateGroup",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "DecoTemplate",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "DecoGroup",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Deco",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Collection",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "ChannelWatermark",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Channel",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "BlockGroup",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Name",
|
|
table: "Block",
|
|
type: "varchar(255)",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(50)",
|
|
oldMaxLength: 50,
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Title",
|
|
table: "ArtistMetadata",
|
|
type: "longtext",
|
|
nullable: true,
|
|
oldClrType: typeof(string),
|
|
oldType: "varchar(255)",
|
|
oldNullable: true,
|
|
oldCollation: "utf8mb4_general_ci")
|
|
.Annotation("MySql:CharSet", "utf8mb4")
|
|
.OldAnnotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
}
|
|
}
|