diff options
author | 2024-01-15 16:39:10 +0100 | |
---|---|---|
committer | 2024-01-15 15:39:10 +0000 | |
commit | 07aee57af2e0073939300ef081f4cda5675ef545 (patch) | |
tree | ab32250bb30685ca4abdc9911d977d854ebc343e /internal/gtsmodel/headerfilter.go | |
parent | [docs] Update roadmap for 2024 onwards (#2521) (diff) | |
download | gotosocial-07aee57af2e0073939300ef081f4cda5675ef545.tar.xz |
[bugfix] Replace named unique constraint on header filter header with generic unique directive (#2525)
* [bugfix] Replace named unique constraint on header filter header with generic unique directive
* add migration retry
* the old fixie uppie
* fix constraint name
* my goodness
Diffstat (limited to 'internal/gtsmodel/headerfilter.go')
-rw-r--r-- | internal/gtsmodel/headerfilter.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/gtsmodel/headerfilter.go b/internal/gtsmodel/headerfilter.go index d1fcb146e..291497c5e 100644 --- a/internal/gtsmodel/headerfilter.go +++ b/internal/gtsmodel/headerfilter.go @@ -45,8 +45,8 @@ type HeaderFilterBlock struct{ HeaderFilter } // matching regex, and details about its creation. type HeaderFilter struct { ID string `bun:"type:CHAR(26),pk,nullzero,notnull,unique"` // ID of this item in the database - Header string `bun:",nullzero,notnull,unique:header_regex"` // Request header this filter pertains to - Regex string `bun:",nullzero,notnull,unique:header_regex"` // Request header value matching regular expression + Header string `bun:",nullzero,notnull"` // Canonical request header this filter pertains to. + Regex string `bun:",nullzero,notnull"` // Request header value matching regular expression. AuthorID string `bun:"type:CHAR(26),nullzero,notnull"` // Account ID of the creator of this filter Author *Account `bun:"-"` // Account corresponding to AuthorID CreatedAt time.Time `bun:"type:timestamptz,nullzero,notnull,default:current_timestamp"` // when was item created |