mirror of
https://github.com/claunia/marechai.git
synced 2026-07-08 17:57:08 +00:00
- Updated the 'Value' column in the 'SoftwareAttributes' table to allow a maximum length of 2048 characters, increasing from the previous limit of 512 characters. - Modified the corresponding model property in SoftwareAttribute.cs to reflect the new maximum length. - Updated the migration snapshot to ensure the database schema is in sync with the model changes.
22 lines
505 B
C#
22 lines
505 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Marechai.Database.Models;
|
|
|
|
public class SoftwareAttribute : BaseModel<long>
|
|
{
|
|
public ulong SoftwareReleaseId { get; set; }
|
|
public virtual SoftwareRelease SoftwareRelease { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(64)]
|
|
public string Category { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(128)]
|
|
public string Key { get; set; }
|
|
|
|
[Required]
|
|
[StringLength(2048)]
|
|
public string Value { get; set; }
|
|
}
|