Export: support export in postgresql (#58553)

This commit is contained in:
Ryan McKinley
2022-11-10 14:16:31 -05:00
committed by GitHub
parent 47055561ec
commit f92d978386
13 changed files with 109 additions and 45 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"path"
"strings"
"time"
"github.com/grafana/grafana/pkg/infra/db"
@@ -29,7 +28,7 @@ func exportPlugins(helper *commitHelper, job *gitExportJob) error {
err := sess.Find(&rows)
if err != nil {
if strings.HasPrefix(err.Error(), "no such table") {
if isTableNotExistsError(err) {
return nil
}
return err