1
0

Use longtext instead of varchar(1000) on description fields (#88)

This commit is contained in:
konrad
2019-07-18 19:56:34 +00:00
committed by Gitea
parent 12eaddc8ee
commit ef0e7c9769
8 changed files with 70 additions and 6 deletions

View File

@ -32,7 +32,7 @@ type ListTask struct {
// The task text. This is what you'll see in the list.
Text string `xorm:"varchar(250) not null" json:"text" valid:"runelength(3|250)" minLength:"3" maxLength:"250"`
// The task description.
Description string `xorm:"varchar(250)" json:"description" valid:"runelength(0|250)" maxLength:"250"`
Description string `xorm:"longtext null" json:"description" valid:"runelength(0|250)" maxLength:"250"`
// Whether a task is done or not.
Done bool `xorm:"INDEX null" json:"done"`
// The unix timestamp when a task was marked as done.