photoprism/internal/entity/fixtures.go

29 lines
668 B
Go
Raw Normal View History

package entity
// CreateTestFixtures inserts all known entities into the database for testing.
2020-05-01 13:12:22 +02:00
func CreateTestFixtures() {
if err := Admin.SetPassword("photoprism"); err != nil {
log.Error(err)
}
2020-05-01 13:12:22 +02:00
CreateLabelFixtures()
CreateCameraFixtures()
CreateCountryFixtures()
CreatePhotoFixtures()
CreateAlbumFixtures()
CreateAccountFixtures()
CreateLinkFixtures()
CreatePhotoAlbumFixtures()
CreateFolderFixtures()
2020-05-01 13:12:22 +02:00
CreateFileFixtures()
CreateKeywordFixtures()
CreatePhotoKeywordFixtures()
CreateCategoryFixtures()
CreateCellFixtures()
2020-05-08 11:46:09 +02:00
CreatePlaceFixtures()
2020-05-13 10:15:43 +02:00
CreateFileShareFixtures()
CreateFileSyncFixtures()
2020-05-13 19:46:49 +02:00
CreateLensFixtures()
CreateMarkerFixtures()
}