Skip to content

Commit

Permalink
Change cfailed type
Browse files Browse the repository at this point in the history
  • Loading branch information
Lun4m committed Nov 20, 2024
1 parent 6231d8f commit 740d0a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions db/flags.sql
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ CREATE TABLE IF NOT EXISTS flags.kvdata (
corrected REAL NULL,
controlinfo TEXT NULL,
useinfo TEXT NULL,
-- TODO: check that this type is correct, it's stored as a string in Kvalobs?
cfailed INT4 NULL,
CONSTRAINT unique_kvdata_timeseries_obstime UNIQUE (timeseries, obstime)
);
Expand All @@ -20,7 +19,7 @@ CREATE TABLE IF NOT EXISTS flags.old_databases (
corrected REAL NULL,
controlinfo TEXT NULL,
useinfo TEXT NULL,
cfailed TEXT NULL ,
cfailed INT4 NULL ,
CONSTRAINT unique_old_flags_timeseries_obstime UNIQUE (timeseries, obstime)
);
CREATE INDEX IF NOT EXISTS old_flags_obtime_index ON flags.old_databases (obstime);
Expand Down
2 changes: 1 addition & 1 deletion migrations/lard/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type Flag struct {
// Flag encoding quality control status
Useinfo *string
// Number of tests that failed?
Cfailed *string
Cfailed *int32
}

func (o *Flag) ToRow() []any {
Expand Down

0 comments on commit 740d0a6

Please sign in to comment.