mirror of
https://github.com/ddworken/hishtory.git
synced 2025-06-20 20:07:52 +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,11 +94,11 @@ func OpenDB() (*database.DB, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to create underlying DB tables: %w", err)
|
return nil, fmt.Errorf("failed to create underlying DB tables: %w", err)
|
||||||
}
|
}
|
||||||
}
|
err = db.CreateIndices()
|
||||||
err := db.CreateIndices()
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return db, nil
|
return db, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user