mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 12:24:38 +03:00
Performer disambiguation and aliases (#3113)
* Refactor performer relationships * Remove checksum from performer * Add disambiguation, overhaul aliases * Add disambiguation filter criterion * Improve name matching during import * Add disambiguation filtering in UI * Include aliases in performer select
This commit is contained in:
@@ -36,3 +36,13 @@ func (m *migrator) withTxn(ctx context.Context, fn func(tx *sqlx.Tx) error) erro
|
||||
err = fn(tx)
|
||||
return err
|
||||
}
|
||||
|
||||
func (m *migrator) execAll(stmts []string) error {
|
||||
for _, stmt := range stmts {
|
||||
if _, err := m.db.Exec(stmt); err != nil {
|
||||
return fmt.Errorf("executing statement %s: %w", stmt, err)
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user