e1c45c4d5f
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
27 lines
643 B
Go
27 lines
643 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()
|
|
CreateAccountFixtures()
|
|
CreateLinkFixtures()
|
|
CreatePhotoAlbumFixtures()
|
|
CreateFolderFixtures()
|
|
CreateFileFixtures()
|
|
CreateKeywordFixtures()
|
|
CreatePhotoKeywordFixtures()
|
|
CreateCategoryFixtures()
|
|
CreateGeoFixtures()
|
|
CreatePlaceFixtures()
|
|
CreateFileShareFixtures()
|
|
CreateFileSyncFixtures()
|
|
CreateLensFixtures()
|
|
}
|