store/postgresql: fix dropped error (#938)

This commit is contained in:
Lars Lehtonen 2019-11-11 23:54:33 -08:00 committed by Asim Aslam
parent 72522a869a
commit bdb62e8ed1

View File

@ -178,6 +178,9 @@ func (s *sqlStore) initDB(options options.Options) error {
expiry timestamp with time zone,
CONSTRAINT %s_pkey PRIMARY KEY (key)
);`, s.table, s.table))
if err != nil {
return errors.Wrap(err, "SQL statement preparation failed")
}
_, err = tableq.Exec()
if err != nil {
return errors.Wrap(err, "Couldn't create table")