mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
update table names
This commit is contained in:
parent
8eec84a655
commit
a007a8252d
4 changed files with 11 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ public class FilterListLanguageTypeConfiguration : BaseEntityTypeConfiguration<F
|
|||
{
|
||||
public override void Configure(EntityTypeBuilder<FilterListLanguage> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.ToTable("FilterLists_Languages");
|
||||
entityTypeBuilder.ToTable("filterlists_languages");
|
||||
|
||||
entityTypeBuilder.HasKey(x => new {x.FilterListId, x.LanguageId});
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace FilterLists.Data.EntityTypeConfigurations
|
||||
|
|
@ -7,8 +8,10 @@ public class FilterListTypeConfiguration : BaseEntityTypeConfiguration<FilterLis
|
|||
{
|
||||
public override void Configure(EntityTypeBuilder<FilterList> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.ToTable("filterlists");
|
||||
|
||||
entityTypeBuilder.Property(b => b.Description)
|
||||
.HasMaxLength(1022);
|
||||
.HasMaxLength(4096);
|
||||
|
||||
entityTypeBuilder.Property(b => b.DescriptionSourceUrl)
|
||||
.HasMaxLength(2083);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace FilterLists.Data.EntityTypeConfigurations
|
||||
|
|
@ -7,6 +8,8 @@ public class LanguageTypeConfiguration : BaseEntityTypeConfiguration<Language>
|
|||
{
|
||||
public override void Configure(EntityTypeBuilder<Language> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.ToTable("languages");
|
||||
|
||||
entityTypeBuilder.Property(b => b.Iso6391)
|
||||
.HasMaxLength(2);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using FilterLists.Data.Entities;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||
|
||||
namespace FilterLists.Data.EntityTypeConfigurations
|
||||
|
|
@ -7,6 +8,8 @@ public class MaintainerTypeConfiguration : BaseEntityTypeConfiguration<Maintaine
|
|||
{
|
||||
public override void Configure(EntityTypeBuilder<Maintainer> entityTypeBuilder)
|
||||
{
|
||||
entityTypeBuilder.ToTable("maintainers");
|
||||
|
||||
entityTypeBuilder.Property(b => b.Email)
|
||||
.HasMaxLength(126);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue