MySQL 8: Improve migrate command, ignore errors when dropping indexes

This commit is contained in:
Michael Mayer
2021-11-28 13:52:27 +01:00
parent 86c43159eb
commit 7e8974fd20
19 changed files with 369 additions and 145 deletions

View File

@@ -12,7 +12,6 @@ import (
"time"
"github.com/dustin/go-humanize/english"
"github.com/urfave/cli"
"github.com/photoprism/photoprism/internal/config"
@@ -151,7 +150,7 @@ func restoreAction(ctx *cli.Context) error {
)
case config.SQLite:
log.Infoln("dropping existing tables")
tables.Drop()
tables.Drop(conf.Db())
cmd = exec.Command(
conf.SqliteBin(),
conf.DatabaseDsn(),