This commit is contained in:
Pavel 2025-05-14 13:01:28 +03:00
parent 37acc4b079
commit 05b39805d5
3 changed files with 3 additions and 3 deletions

@ -1 +1 @@
ALTER TABLE question ADD COLUMN auditory BIGINT DEFAULT 0;
ALTER TABLE question ADD COLUMN auditory BIGINT NOT NULL DEFAULT 0;

@ -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 {

@ -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 {