Skip to content

Commit c375962

Browse files
Test and update migrations.
1 parent a01b07a commit c375962

File tree

13 files changed

+1201
-597
lines changed

13 files changed

+1201
-597
lines changed

backend/src/Squidex.Data.EntityFramework/Infrastructure/JsonConversion.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public static PropertyBuilder<DomainId> AsString(this PropertyBuilder<DomainId>
5050
v => DomainId.Create(v)
5151
);
5252

53-
propertyBuilder.HasConversion(converter);
53+
propertyBuilder.HasConversion(converter).HasMaxLength(255);
5454
return propertyBuilder;
5555
}
5656

@@ -61,7 +61,7 @@ public static PropertyBuilder<DomainId> AsString(this PropertyBuilder<DomainId>
6161
v => v != null ? DomainId.Create(v) : null
6262
);
6363

64-
propertyBuilder.HasConversion(converter);
64+
propertyBuilder.HasConversion(converter).HasMaxLength(255);
6565
return propertyBuilder;
6666
}
6767

@@ -72,7 +72,7 @@ public static PropertyBuilder<RefToken> AsString(this PropertyBuilder<RefToken>
7272
v => RefToken.Parse(v)
7373
);
7474

75-
propertyBuilder.HasConversion(converter);
75+
propertyBuilder.HasConversion(converter).HasMaxLength(100);
7676
return propertyBuilder;
7777
}
7878

@@ -83,7 +83,7 @@ public static PropertyBuilder<NamedId<DomainId>> AsString(this PropertyBuilder<N
8383
v => NamedId<DomainId>.Parse(v, ParseDomainId)
8484
);
8585

86-
propertyBuilder.HasConversion(converter);
86+
propertyBuilder.HasConversion(converter).HasMaxLength(255);
8787
return propertyBuilder;
8888
}
8989

@@ -94,7 +94,7 @@ public static PropertyBuilder<T> AsString<T>(this PropertyBuilder<T> propertyBui
9494
v => Enum.Parse<T>(v, true)
9595
);
9696

97-
propertyBuilder.HasConversion(converter);
97+
propertyBuilder.HasConversion(converter).HasMaxLength(100);
9898
return propertyBuilder;
9999
}
100100

@@ -105,7 +105,7 @@ public static PropertyBuilder<T> AsString<T>(this PropertyBuilder<T> propertyBui
105105
v => v != null ? Enum.Parse<T>(v, true) : null
106106
);
107107

108-
propertyBuilder.HasConversion(converter);
108+
propertyBuilder.HasConversion(converter).HasMaxLength(100);
109109
return propertyBuilder;
110110
}
111111

@@ -116,7 +116,7 @@ public static PropertyBuilder<HashSet<string>> AsString(this PropertyBuilder<Has
116116
v => TagsConverter.ToSet(v)
117117
);
118118

119-
propertyBuilder.HasConversion(converter);
119+
propertyBuilder.HasConversion(converter).HasMaxLength(1000);
120120
return propertyBuilder;
121121
}
122122

@@ -127,7 +127,7 @@ public static PropertyBuilder<Status> AsString(this PropertyBuilder<Status> prop
127127
v => new Status(v)
128128
);
129129

130-
propertyBuilder.HasConversion(converter);
130+
propertyBuilder.HasConversion(converter).HasMaxLength(100);
131131
return propertyBuilder;
132132
}
133133

@@ -138,7 +138,7 @@ public static PropertyBuilder<Status> AsString(this PropertyBuilder<Status> prop
138138
v => v != null ? new Status(v) : null
139139
);
140140

141-
propertyBuilder.HasConversion(converter);
141+
propertyBuilder.HasConversion(converter).HasMaxLength(100);
142142
return propertyBuilder;
143143
}
144144

@@ -149,7 +149,7 @@ public static PropertyBuilder<UniqueContentId> AsString(this PropertyBuilder<Uni
149149
v => v.ToUniqueContentId()
150150
);
151151

152-
propertyBuilder.HasConversion(converter);
152+
propertyBuilder.HasConversion(converter).HasMaxLength(255);
153153
return propertyBuilder;
154154
}
155155

0 commit comments

Comments
 (0)