photoprism/internal/entity/fixtures.go
2020-05-01 14:18:51 +02:00

14 lines
303 B
Go

package entity
import (
"github.com/jinzhu/gorm"
)
// CreateTestFixtures inserts all known entities into the database for testing.
func CreateTestFixtures(db *gorm.DB) {
CreateLabelFixtures(db)
CreateCameraFixtures(db)
CreateCountryFixtures(db)
CreatePhotoFixtures(db)
CreateAlbumFixtures(db)
}