diff --git a/src/FilterLists.Data/EntityTypeConfigurations/FilterListTypeConfiguration.cs b/src/FilterLists.Data/EntityTypeConfigurations/FilterListTypeConfiguration.cs index f1dba6bcc..06ce42d63 100644 --- a/src/FilterLists.Data/EntityTypeConfigurations/FilterListTypeConfiguration.cs +++ b/src/FilterLists.Data/EntityTypeConfigurations/FilterListTypeConfiguration.cs @@ -10,26 +10,28 @@ public override void Configure(EntityTypeBuilder entityTypeBuilder) { entityTypeBuilder.ToTable("filterlists"); entityTypeBuilder.Property(x => x.Description) - .HasMaxLength(4096); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.DescriptionSourceUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.DonateUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.EmailAddress) + .IsUnicode() .HasMaxLength(126); entityTypeBuilder.Property(x => x.ForumUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.HomeUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.IssuesUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.Name) + .IsUnicode() .IsRequired() .HasMaxLength(126); entityTypeBuilder.Property(x => x.SubmissionUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.ViewUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); base.Configure(entityTypeBuilder); } } diff --git a/src/FilterLists.Data/EntityTypeConfigurations/LanguageTypeConfiguration.cs b/src/FilterLists.Data/EntityTypeConfigurations/LanguageTypeConfiguration.cs index a9f04d449..86367b40a 100644 --- a/src/FilterLists.Data/EntityTypeConfigurations/LanguageTypeConfiguration.cs +++ b/src/FilterLists.Data/EntityTypeConfigurations/LanguageTypeConfiguration.cs @@ -10,18 +10,25 @@ public override void Configure(EntityTypeBuilder entityTypeBuilder) { entityTypeBuilder.ToTable("languages"); entityTypeBuilder.Property(x => x.Iso6391) + .IsUnicode() .HasMaxLength(2); entityTypeBuilder.Property(x => x.Iso6392) + .IsUnicode() .HasMaxLength(3); entityTypeBuilder.Property(x => x.Iso6392B) + .IsUnicode() .HasMaxLength(3); entityTypeBuilder.Property(x => x.Iso6392T) + .IsUnicode() .HasMaxLength(3); entityTypeBuilder.Property(x => x.Iso6393) + .IsUnicode() .HasMaxLength(3); entityTypeBuilder.Property(x => x.LocalName) + .IsUnicode() .HasMaxLength(126); entityTypeBuilder.Property(x => x.Name) + .IsUnicode() .HasMaxLength(126); base.Configure(entityTypeBuilder); } diff --git a/src/FilterLists.Data/EntityTypeConfigurations/LicenseTypeConfiguration.cs b/src/FilterLists.Data/EntityTypeConfigurations/LicenseTypeConfiguration.cs index 51b8ff93e..b6235c91e 100644 --- a/src/FilterLists.Data/EntityTypeConfigurations/LicenseTypeConfiguration.cs +++ b/src/FilterLists.Data/EntityTypeConfigurations/LicenseTypeConfiguration.cs @@ -10,8 +10,9 @@ public override void Configure(EntityTypeBuilder entityTypeBuilder) { entityTypeBuilder.ToTable("licenses"); entityTypeBuilder.Property(x => x.DescriptionUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.Name) + .IsUnicode() .IsRequired() .HasMaxLength(126); base.Configure(entityTypeBuilder); diff --git a/src/FilterLists.Data/EntityTypeConfigurations/MaintainerTypeConfiguration.cs b/src/FilterLists.Data/EntityTypeConfigurations/MaintainerTypeConfiguration.cs index e1877f808..2b8eb03aa 100644 --- a/src/FilterLists.Data/EntityTypeConfigurations/MaintainerTypeConfiguration.cs +++ b/src/FilterLists.Data/EntityTypeConfigurations/MaintainerTypeConfiguration.cs @@ -10,13 +10,16 @@ public override void Configure(EntityTypeBuilder entityTypeBuilder) { entityTypeBuilder.ToTable("maintainers"); entityTypeBuilder.Property(x => x.EmailAddress) + .IsUnicode() .HasMaxLength(126); entityTypeBuilder.Property(x => x.HomeUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.Name) + .IsUnicode() .IsRequired() .HasMaxLength(126); entityTypeBuilder.Property(x => x.TwitterHandle) + .IsUnicode() .HasMaxLength(126); base.Configure(entityTypeBuilder); } diff --git a/src/FilterLists.Data/EntityTypeConfigurations/RuleTypeConfiguration.cs b/src/FilterLists.Data/EntityTypeConfigurations/RuleTypeConfiguration.cs index 701d8200d..60b712bbe 100644 --- a/src/FilterLists.Data/EntityTypeConfigurations/RuleTypeConfiguration.cs +++ b/src/FilterLists.Data/EntityTypeConfigurations/RuleTypeConfiguration.cs @@ -10,6 +10,7 @@ public override void Configure(EntityTypeBuilder entityTypeBuilder) { entityTypeBuilder.ToTable("rules"); entityTypeBuilder.Property(x => x.Raw) + .IsUnicode() .HasMaxLength(2083); base.Configure(entityTypeBuilder); } diff --git a/src/FilterLists.Data/EntityTypeConfigurations/SoftwareTypeConfiguration.cs b/src/FilterLists.Data/EntityTypeConfigurations/SoftwareTypeConfiguration.cs index 9bce21379..bad4a8429 100644 --- a/src/FilterLists.Data/EntityTypeConfigurations/SoftwareTypeConfiguration.cs +++ b/src/FilterLists.Data/EntityTypeConfigurations/SoftwareTypeConfiguration.cs @@ -10,10 +10,12 @@ public override void Configure(EntityTypeBuilder entityTypeBuilder) { entityTypeBuilder.ToTable("software"); entityTypeBuilder.Property(x => x.DownloadUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.HomeUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.Name) + .IsUnicode() + .IsRequired() .HasMaxLength(126); base.Configure(entityTypeBuilder); } diff --git a/src/FilterLists.Data/EntityTypeConfigurations/SyntaxTypeConfiguration.cs b/src/FilterLists.Data/EntityTypeConfigurations/SyntaxTypeConfiguration.cs index f246c7dfd..67609310a 100644 --- a/src/FilterLists.Data/EntityTypeConfigurations/SyntaxTypeConfiguration.cs +++ b/src/FilterLists.Data/EntityTypeConfigurations/SyntaxTypeConfiguration.cs @@ -10,8 +10,9 @@ public override void Configure(EntityTypeBuilder entityTypeBuilder) { entityTypeBuilder.ToTable("syntaxes"); entityTypeBuilder.Property(x => x.DefinitionUrl) - .HasMaxLength(2083); + .HasColumnType("TEXT"); entityTypeBuilder.Property(x => x.Name) + .IsUnicode() .IsRequired() .HasMaxLength(126); base.Configure(entityTypeBuilder);