diff --git a/dal/schema/000022_init.up.sql b/dal/schema/000022_init.up.sql index 79774c7..dfa9cb5 100644 --- a/dal/schema/000022_init.up.sql +++ b/dal/schema/000022_init.up.sql @@ -1 +1 @@ -ALTER TABLE question ADD COLUMN auditory BIGINT DEFAULT 0; +ALTER TABLE question ADD COLUMN auditory BIGINT NOT NULL DEFAULT 0; diff --git a/dal/sqlcgen/models.go b/dal/sqlcgen/models.go index 7b6ca90..5110239 100644 --- a/dal/sqlcgen/models.go +++ b/dal/sqlcgen/models.go @@ -223,7 +223,7 @@ type Question struct { CreatedAt sql.NullTime `db:"created_at" json:"created_at"` UpdatedAt sql.NullTime `db:"updated_at" json:"updated_at"` Session string `db:"session" json:"session"` - Auditory sql.NullInt64 `db:"auditory" json:"auditory"` + Auditory int64 `db:"auditory" json:"auditory"` } type Quiz struct { diff --git a/dal/sqlcgen/queries.sql.go b/dal/sqlcgen/queries.sql.go index 5e1f496..d83c286 100644 --- a/dal/sqlcgen/queries.sql.go +++ b/dal/sqlcgen/queries.sql.go @@ -4453,7 +4453,7 @@ type InsertQuestionParams struct { ParentIds []int32 `db:"parent_ids" json:"parent_ids"` UpdatedAt sql.NullTime `db:"updated_at" json:"updated_at"` Session string `db:"session" json:"session"` - Auditory sql.NullInt64 `db:"auditory" json:"auditory"` + Auditory int64 `db:"auditory" json:"auditory"` } type InsertQuestionRow struct {