Skip creating DB indexes in the production environment since we manually create those concurrently

This commit is contained in:
David Dworken 2023-11-12 03:21:01 -08:00
parent 0be6fe9724
commit 29fa710fbc
No known key found for this signature in database

View File

@ -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
} }