Compare commits

...

1 commit

Author SHA1 Message Date
3ba24f8c0e Make not null 2024-11-19 10:44:54 -05:00
2 changed files with 2 additions and 2 deletions

View file

@ -105,7 +105,7 @@ type TalkgroupsLearned struct {
Name string `json:"name"` Name string `json:"name"`
AlphaTag *string `json:"alpha_tag"` AlphaTag *string `json:"alpha_tag"`
TGGroup *string `json:"tg_group"` TGGroup *string `json:"tg_group"`
Ignored *bool `json:"ignored"` Ignored bool `json:"ignored"`
} }
type User struct { type User struct {

View file

@ -51,7 +51,7 @@ CREATE TABLE IF NOT EXISTS talkgroups_learned(
name TEXT NOT NULL, name TEXT NOT NULL,
alpha_tag TEXT, alpha_tag TEXT,
tg_group TEXT, tg_group TEXT,
ignored BOOLEAN, ignored BOOLEAN NOT NULL DEFAULT FALSE,
UNIQUE (system_id, tgid, name) UNIQUE (system_id, tgid, name)
); );