Backend: Move migrate package to /internal/entity/migrate

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer 2024-07-02 06:40:03 +02:00
parent f019ee2ad3
commit 6944566b7b
69 changed files with 8 additions and 9 deletions

View file

@ -12,7 +12,7 @@ import (
"github.com/urfave/cli"
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/photoprism/photoprism/internal/entity/migrate"
"github.com/photoprism/photoprism/pkg/report"
)

View file

@ -8,14 +8,13 @@ import (
"regexp"
"time"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/manifoldco/promptui"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
"github.com/photoprism/photoprism/internal/config"
"github.com/photoprism/photoprism/internal/entity"
"github.com/photoprism/photoprism/internal/entity/migrate"
)
// ResetCommand configures the command name, flags, and action.

View file

@ -15,7 +15,7 @@ import (
_ "github.com/jinzhu/gorm/dialects/sqlite"
"github.com/photoprism/photoprism/internal/entity"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/photoprism/photoprism/internal/entity/migrate"
"github.com/photoprism/photoprism/internal/mutex"
"github.com/photoprism/photoprism/pkg/clean"
"github.com/photoprism/photoprism/pkg/txt"

View file

@ -3,7 +3,7 @@ package entity
import (
"time"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/photoprism/photoprism/internal/entity/migrate"
)
// CreateDefaultFixtures inserts default fixtures for test and production.

View file

@ -4,7 +4,7 @@ import (
"os"
"time"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/photoprism/photoprism/internal/entity/migrate"
"github.com/photoprism/photoprism/pkg/clean"
)

View file

@ -7,7 +7,7 @@ import (
"github.com/jinzhu/gorm"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/photoprism/photoprism/internal/entity/migrate"
"github.com/photoprism/photoprism/pkg/clean"
)

View file

@ -12,7 +12,7 @@ import (
"strings"
"text/template"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/photoprism/photoprism/internal/entity/migrate"
)
func gen_migrations(name string) {

View file

@ -5,7 +5,7 @@ import (
"testing"
"time"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/photoprism/photoprism/internal/entity/migrate"
"github.com/jinzhu/gorm"
)