2020-04-30 14:32:48 +02:00
|
|
|
package entity
|
|
|
|
|
|
|
|
// CreateTestFixtures inserts all known entities into the database for testing.
|
2020-05-01 13:12:22 +02:00
|
|
|
func CreateTestFixtures() {
|
2020-06-30 08:50:44 +02:00
|
|
|
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()
|
2020-05-30 15:42:04 +02:00
|
|
|
CreateFolderFixtures()
|
2020-05-01 13:12:22 +02:00
|
|
|
CreateFileFixtures()
|
|
|
|
CreateKeywordFixtures()
|
|
|
|
CreatePhotoKeywordFixtures()
|
|
|
|
CreateCategoryFixtures()
|
2020-07-12 08:27:05 +02:00
|
|
|
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()
|
2020-04-30 14:32:48 +02:00
|
|
|
}
|