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()
|
2021-08-16 00:29:36 +02:00
|
|
|
CreateSubjectFixtures()
|
2021-06-02 17:25:04 +02:00
|
|
|
CreateMarkerFixtures()
|
2021-08-14 18:13:03 +02:00
|
|
|
CreateFaceFixtures()
|
2021-08-10 12:30:04 +02:00
|
|
|
CreateUserFixtures()
|
|
|
|
CreatePasswordFixtures()
|
2020-04-30 14:32:48 +02:00
|
|
|
}
|