lens @ 1d6fa60b3c60d068d12b19f10f5ad73e836b5a70

 1package sql
 2
 3import "gorm.io/gorm"
 4
 5func Migrate(db *gorm.DB) error {
 6	for _, m := range []any{
 7		&User{},
 8		&Settings{},
 9		&Media{},
10		&MediaEXIF{},
11	} {
12		if err := db.AutoMigrate(m); err != nil {
13			return err
14		}
15	}
16	return nil
17}