mirror of
https://github.com/C9Glax/tranga.git
synced 2025-06-12 22:47:52 +02:00
Fix MaxURL length in db (2048)
This commit is contained in:
@ -35,7 +35,7 @@ public class Chapter : IComparable<Chapter>
|
||||
[Required]
|
||||
public string ChapterNumber { get; private set; }
|
||||
|
||||
[StringLength(256)]
|
||||
[StringLength(2048)]
|
||||
[Required]
|
||||
[Url]
|
||||
public string Url { get; internal set; }
|
||||
|
@ -9,10 +9,10 @@ public class Link(string linkProvider, string linkUrl)
|
||||
[StringLength(64)]
|
||||
[Required]
|
||||
public string LinkId { get; init; } = TokenGen.CreateToken(typeof(Link), linkProvider, linkUrl);
|
||||
[StringLength(128)]
|
||||
[StringLength(64)]
|
||||
[Required]
|
||||
public string LinkProvider { get; init; } = linkProvider;
|
||||
[StringLength(128)]
|
||||
[StringLength(2048)]
|
||||
[Required]
|
||||
[Url]
|
||||
public string LinkUrl { get; init; } = linkUrl;
|
||||
|
@ -16,7 +16,7 @@ public abstract class MangaConnector(string name, string[] supportedLanguages, s
|
||||
[StringLength(8)]
|
||||
[Required]
|
||||
public string[] SupportedLanguages { get; init; } = supportedLanguages;
|
||||
[StringLength(256)]
|
||||
[StringLength(2048)]
|
||||
[Required]
|
||||
public string IconUrl { get; init; } = iconUrl;
|
||||
[StringLength(256)]
|
||||
|
@ -13,7 +13,7 @@ public class NotificationConnector(string name, string url, Dictionary<string, s
|
||||
[Required]
|
||||
public string Name { get; init; } = name;
|
||||
|
||||
[StringLength(256)]
|
||||
[StringLength(2048)]
|
||||
[Required]
|
||||
[Url]
|
||||
public string Url { get; internal set; } = url;
|
||||
@ -25,7 +25,7 @@ public class NotificationConnector(string name, string url, Dictionary<string, s
|
||||
[Required]
|
||||
public string HttpMethod { get; internal set; } = httpMethod;
|
||||
|
||||
[StringLength(512)]
|
||||
[StringLength(4096)]
|
||||
[Required]
|
||||
public string Body { get; internal set; } = body;
|
||||
|
||||
|
Reference in New Issue
Block a user