Set default PDS ID to unknown

main
Max Ignatenko 2024-02-21 09:39:26 +00:00
parent 67a8ab5aff
commit 765b7b792b
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ type Repo struct {
ID models.ID `gorm:"primarykey"`
CreatedAt time.Time
UpdatedAt time.Time
PDS models.ID `gorm:"index:rev_state_index,priority:2;index:was_indexed,priority:2"`
PDS models.ID `gorm:"default:0;index:rev_state_index,priority:2;index:was_indexed,priority:2"`
DID string `gorm:"uniqueIndex;column:did"`
LastIndexedRev string `gorm:"index:rev_state_index,expression:(last_indexed_rev < first_rev_since_reset),priority:1;index:was_indexed,expression:(last_indexed_rev is null OR last_indexed_rev = ''),priority:1"`
FirstRevSinceReset string