summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--store/sql_store.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/store/sql_store.go b/store/sql_store.go
index c0b3c2021..cf6fae6d4 100644
--- a/store/sql_store.go
+++ b/store/sql_store.go
@@ -144,6 +144,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())