photoprism/internal/entity/fixtures.go
Michael Mayer e3bb8b19dd 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>
2022-10-15 21:54:11 +02:00

35 lines
841 B
Go

package entity
// CreateTestFixtures inserts all known entities into the database for testing.
func CreateTestFixtures() {
if err := Admin.SetPassword("photoprism"); err != nil {
log.Error(err)
}
CreateLabelFixtures()
CreateCameraFixtures()
CreateCountryFixtures()
CreatePhotoFixtures()
CreateAlbumFixtures()
CreateServiceFixtures()
CreateLinkFixtures()
CreatePhotoAlbumFixtures()
CreateFolderFixtures()
CreateFileFixtures()
CreateKeywordFixtures()
CreatePhotoKeywordFixtures()
CreateCategoryFixtures()
CreateCellFixtures()
CreatePlaceFixtures()
CreateFileShareFixtures()
CreateFileSyncFixtures()
CreateLensFixtures()
CreateSubjectFixtures()
CreateMarkerFixtures()
CreateFaceFixtures()
CreateUserFixtures()
CreateSessionFixtures()
CreateReactionFixtures()
CreatePasswordFixtures()
CreateUserShareFixtures()
}