store/postgresql: fix dropped error (#938)
This commit is contained in:
parent
72522a869a
commit
bdb62e8ed1
@ -178,6 +178,9 @@ func (s *sqlStore) initDB(options options.Options) error {
|
|||||||
expiry timestamp with time zone,
|
expiry timestamp with time zone,
|
||||||
CONSTRAINT %s_pkey PRIMARY KEY (key)
|
CONSTRAINT %s_pkey PRIMARY KEY (key)
|
||||||
);`, s.table, s.table))
|
);`, s.table, s.table))
|
||||||
|
if err != nil {
|
||||||
|
return errors.Wrap(err, "SQL statement preparation failed")
|
||||||
|
}
|
||||||
_, err = tableq.Exec()
|
_, err = tableq.Exec()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return errors.Wrap(err, "Couldn't create table")
|
return errors.Wrap(err, "Couldn't create table")
|
||||||
|
Loading…
Reference in New Issue
Block a user