mirror of https://github.com/ErsatzTV/ErsatzTV.git
74 changed files with 15723 additions and 361 deletions
@ -1,57 +1,67 @@
@@ -1,57 +1,67 @@
|
||||
using Bugsnag; |
||||
using ErsatzTV.Core; |
||||
using ErsatzTV.Core; |
||||
using ErsatzTV.Core.Domain.Filler; |
||||
using ErsatzTV.Infrastructure.Data; |
||||
using Microsoft.EntityFrameworkCore; |
||||
|
||||
namespace ErsatzTV.Application.Filler; |
||||
|
||||
public class CreateFillerPresetHandler : IRequestHandler<CreateFillerPreset, Either<BaseError, Unit>> |
||||
public class CreateFillerPresetHandler(IDbContextFactory<TvContext> dbContextFactory) |
||||
: IRequestHandler<CreateFillerPreset, Either<BaseError, Unit>> |
||||
{ |
||||
private readonly IClient _client; |
||||
private readonly IDbContextFactory<TvContext> _dbContextFactory; |
||||
|
||||
public CreateFillerPresetHandler(IClient client, IDbContextFactory<TvContext> dbContextFactory) |
||||
public async Task<Either<BaseError, Unit>> Handle(CreateFillerPreset request, CancellationToken cancellationToken) |
||||
{ |
||||
_client = client; |
||||
_dbContextFactory = dbContextFactory; |
||||
await using TvContext dbContext = await dbContextFactory.CreateDbContextAsync(cancellationToken); |
||||
Validation<BaseError, FillerPreset> validation = await Validate(dbContext, request); |
||||
return await validation.Apply(fp => Persist(dbContext, fp, cancellationToken)); |
||||
} |
||||
|
||||
public async Task<Either<BaseError, Unit>> Handle(CreateFillerPreset request, CancellationToken cancellationToken) |
||||
private static async Task<Unit> Persist( |
||||
TvContext dbContext, |
||||
FillerPreset fillerPreset, |
||||
CancellationToken cancellationToken) |
||||
{ |
||||
try |
||||
{ |
||||
await using TvContext dbContext = await _dbContextFactory.CreateDbContextAsync(cancellationToken); |
||||
|
||||
var fillerPreset = new FillerPreset |
||||
{ |
||||
Name = request.Name, |
||||
FillerKind = request.FillerKind, |
||||
FillerMode = request.FillerMode, |
||||
Duration = request.Duration, |
||||
Count = request.Count, |
||||
PadToNearestMinute = request.PadToNearestMinute, |
||||
AllowWatermarks = request.AllowWatermarks, |
||||
CollectionType = request.CollectionType, |
||||
CollectionId = request.CollectionId, |
||||
MediaItemId = request.MediaItemId, |
||||
MultiCollectionId = request.MultiCollectionId, |
||||
SmartCollectionId = request.SmartCollectionId, |
||||
PlaylistId = request.PlaylistId, |
||||
Expression = request.FillerKind is FillerKind.MidRoll ? request.Expression : null, |
||||
UseChaptersAsMediaItems = |
||||
request.FillerKind is not FillerKind.Fallback && request.UseChaptersAsMediaItems |
||||
}; |
||||
|
||||
await dbContext.FillerPresets.AddAsync(fillerPreset, cancellationToken); |
||||
await dbContext.SaveChangesAsync(cancellationToken); |
||||
|
||||
return Unit.Default; |
||||
} |
||||
catch (Exception ex) |
||||
await dbContext.FillerPresets.AddAsync(fillerPreset, cancellationToken); |
||||
await dbContext.SaveChangesAsync(cancellationToken); |
||||
return Unit.Default; |
||||
} |
||||
|
||||
private static Task<Validation<BaseError, FillerPreset>> Validate( |
||||
TvContext dbContext, |
||||
CreateFillerPreset request) => |
||||
ValidateName(dbContext, request).MapT(name => new FillerPreset |
||||
{ |
||||
_client.Notify(ex); |
||||
return BaseError.New(ex.Message); |
||||
} |
||||
Name = name, |
||||
FillerKind = request.FillerKind, |
||||
FillerMode = request.FillerMode, |
||||
Duration = request.Duration, |
||||
Count = request.Count, |
||||
PadToNearestMinute = request.PadToNearestMinute, |
||||
AllowWatermarks = request.AllowWatermarks, |
||||
CollectionType = request.CollectionType, |
||||
CollectionId = request.CollectionId, |
||||
MediaItemId = request.MediaItemId, |
||||
MultiCollectionId = request.MultiCollectionId, |
||||
SmartCollectionId = request.SmartCollectionId, |
||||
PlaylistId = request.PlaylistId, |
||||
Expression = request.FillerKind is FillerKind.MidRoll ? request.Expression : null, |
||||
UseChaptersAsMediaItems = |
||||
request.FillerKind is not FillerKind.Fallback && request.UseChaptersAsMediaItems |
||||
}); |
||||
|
||||
private static async Task<Validation<BaseError, string>> ValidateName( |
||||
TvContext dbContext, |
||||
CreateFillerPreset request) |
||||
{ |
||||
Validation<BaseError, string> result1 = request.NotEmpty(fp => fp.Name) |
||||
.Bind(_ => request.NotLongerThan(50)(fp => fp.Name)); |
||||
|
||||
bool duplicateName = await dbContext.FillerPresets |
||||
.AnyAsync(fp => fp.Name == request.Name); |
||||
|
||||
Validation<BaseError, Unit> result2 = duplicateName |
||||
? Fail<BaseError, Unit>("Filler preset name must be unique") |
||||
: Success<BaseError, Unit>(Unit.Default); |
||||
|
||||
return (result1, result2).Apply((_, _) => request.Name); |
||||
} |
||||
} |
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,679 @@
@@ -0,0 +1,679 @@
|
||||
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"); |
||||
} |
||||
} |
||||
} |
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,591 @@
@@ -0,0 +1,591 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
||||
#nullable disable |
||||
|
||||
namespace ErsatzTV.Infrastructure.Sqlite.Migrations |
||||
{ |
||||
/// <inheritdoc />
|
||||
public partial class Update_CaseSensitivity : Migration |
||||
{ |
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
||||
{ |
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "TraktList", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "TemplateGroup", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Template", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "SmartCollection", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Title", |
||||
table: "ShowMetadata", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "RerunCollection", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "ProgramSchedule", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Playlist", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "MultiCollection", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Title", |
||||
table: "MovieMetadata", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Guid", |
||||
table: "MetadataGuid", |
||||
type: "varchar(128)", |
||||
maxLength: 128, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "FillerPreset", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "DecoTemplateGroup", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "DecoTemplate", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "DecoGroup", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Deco", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Collection", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "ChannelWatermark", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Channel", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "BlockGroup", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Block", |
||||
type: "varchar(50)", |
||||
maxLength: 50, |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Title", |
||||
table: "ArtistMetadata", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true); |
||||
|
||||
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: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "TemplateGroup", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Template", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "SmartCollection", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
collation: "NOCASE", |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Title", |
||||
table: "ShowMetadata", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "RerunCollection", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "ProgramSchedule", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Playlist", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "MultiCollection", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Title", |
||||
table: "MovieMetadata", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Guid", |
||||
table: "MetadataGuid", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(128)", |
||||
oldMaxLength: 128, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "FillerPreset", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "DecoTemplateGroup", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "DecoTemplate", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "DecoGroup", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Deco", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Collection", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "ChannelWatermark", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Channel", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "BlockGroup", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Name", |
||||
table: "Block", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "varchar(50)", |
||||
oldMaxLength: 50, |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
|
||||
migrationBuilder.AlterColumn<string>( |
||||
name: "Title", |
||||
table: "ArtistMetadata", |
||||
type: "TEXT", |
||||
nullable: true, |
||||
oldClrType: typeof(string), |
||||
oldType: "TEXT", |
||||
oldNullable: true, |
||||
oldCollation: "NOCASE"); |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue