mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 11:57:50 +02:00
Skip creating DB indexes in the production environment since we manually create those concurrently
This commit is contained in:
parent
0be6fe9724
commit
29fa710fbc
@ -94,10 +94,10 @@ func OpenDB() (*database.DB, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("failed to create underlying DB tables: %w", err)
|
||||
}
|
||||
}
|
||||
err := db.CreateIndices()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
err = db.CreateIndices()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return db, nil
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user