diff options
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_store.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/store/sql_store.go b/store/sql_store.go index 3c41cb1fc..2f7ac2805 100644 --- a/store/sql_store.go +++ b/store/sql_store.go @@ -229,6 +229,10 @@ func (ss SqlStore) DoesColumnExist(tableName string, columnName string) bool { ) if err != nil { + if err.Error() == "pq: relation \""+strings.ToLower(tableName)+"\" does not exist" { + return false + } + l4g.Critical("Failed to check if column exists %v", err) time.Sleep(time.Second) panic("Failed to check if column exists " + err.Error()) |