lamassu-server/packages/server/migrations/1744294267663-customer-id-index.js
2025-05-23 16:53:04 +01:00

12 lines
281 B
JavaScript

const db = require('./db')
exports.up = next =>
db.multi(
[
`CREATE INDEX cash_in_txs_customer_id_idx ON cash_in_txs (customer_id);`,
`CREATE INDEX cash_out_txs_customer_id_idx ON cash_out_txs (customer_id);`,
],
next,
)
exports.down = next => next()