mirror of
https://git.imnavajas.es/jjimenez/erp-imprimelibros.git
synced 2026-01-23 09:10:22 +00:00
terminado a falta de pruebas en servidor
This commit is contained in:
@ -0,0 +1,28 @@
|
||||
databaseChangeLog:
|
||||
- changeSet:
|
||||
id: 0012-drop-unique-tx-gateway
|
||||
author: JJO
|
||||
|
||||
# ✅ Solo ejecuta el changeSet si existe la UNIQUE constraint
|
||||
preConditions:
|
||||
- onFail: MARK_RAN
|
||||
- uniqueConstraintExists:
|
||||
tableName: payment_transactions
|
||||
constraintName: idx_payment_tx_gateway_txid
|
||||
|
||||
changes:
|
||||
# 1️⃣ Eliminar la UNIQUE constraint si existe
|
||||
- dropIndex:
|
||||
tableName: payment_transactions
|
||||
indexName: idx_payment_tx_gateway_txid
|
||||
|
||||
|
||||
rollback:
|
||||
# 🔙 1) Eliminar el índice normal creado en este changeSet
|
||||
- createIndex:
|
||||
tableName: payment_transactions
|
||||
indexName: idx_payment_tx_gateway_txid
|
||||
columns:
|
||||
- column:
|
||||
name: gateway_transaction_id
|
||||
|
||||
Reference in New Issue
Block a user