mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 03:13:15 -06:00
add migration to remove Mention{}.UpdatedAt field
This commit is contained in:
parent
80cc0b165c
commit
3f89258660
2 changed files with 57 additions and 0 deletions
|
|
@ -26,6 +26,7 @@ import (
|
|||
type Mention struct {
|
||||
ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"` // id of this item in the database
|
||||
CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // when was item created
|
||||
UpdatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // when was item last updated
|
||||
StatusID string `bun:"type:CHAR(26),nullzero,notnull"` // ID of the status this mention originates from
|
||||
Status *Status `bun:"rel:belongs-to"` // status referred to by statusID
|
||||
OriginAccountID string `bun:"type:CHAR(26),nullzero,notnull"` // ID of the mention creator account
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue