Routing: Prefix frontend UI routes with /library #840 #2466

Also improves migrations and updates the db schema docs.

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2022-10-15 21:54:11 +02:00
parent 3bad6820d7
commit e3bb8b19dd
202 changed files with 3189 additions and 2608 deletions

View File

@@ -5,6 +5,8 @@ import (
"testing"
"time"
"github.com/photoprism/photoprism/internal/migrate"
"github.com/jinzhu/gorm"
)
@@ -42,14 +44,14 @@ func TestMySQL8(t *testing.T) {
Entities.Drop(db)
// First migration.
Entities.Migrate(db, false, nil)
Entities.Migrate(db, migrate.Opt(false, nil))
Entities.WaitForMigration(db)
// Second migration.
Entities.Migrate(db, false, nil)
Entities.Migrate(db, migrate.Opt(false, nil))
Entities.WaitForMigration(db)
// Third migration with force flag.
Entities.Migrate(db, true, []string{"20211121-094727"})
Entities.Migrate(db, migrate.Opt(false, []string{"20211121-094727"}))
Entities.WaitForMigration(db)
}