Skip to content

Commit

Permalink
fixup! chore: event_payload column can be JSONB, BYTEA or TEXT
Browse files Browse the repository at this point in the history
  • Loading branch information
Sidddddarth committed Dec 13, 2024
1 parent 58a72f5 commit c5c21e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jobsdb/jobsdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,9 @@ func (jd *Handle) init() {
jd.config = config.Default
}

jd.conf.payloadColumnType = payloadColumnType(jd.config.GetIntVar(0, 1, jd.tablePrefix+"."+string(jd.ownerType)+".payloadColumnType", jd.tablePrefix+".payloadColumnType"))
if jd.conf.payloadColumnType == 0 {
jd.conf.payloadColumnType = payloadColumnType(jd.config.GetIntVar(0, 1, "JobsDB."+jd.tablePrefix+"."+string(jd.ownerType)+".payloadColumnType", "JobsDB."+jd.tablePrefix+".payloadColumnType"))
}

if jd.stats == nil {
jd.stats = stats.Default
Expand Down

0 comments on commit c5c21e3

Please sign in to comment.