23 lines
892 B
SQL
23 lines
892 B
SQL
SELECT table_name FROM information_schema.tables
|
|
WHERE table_schema = DATABASE()
|
|
AND table_name = 'qipai_reconciliation_runs';
|
|
|
|
SELECT column_name FROM information_schema.columns
|
|
WHERE table_schema = DATABASE() AND table_name = 'qipai_refunds'
|
|
AND column_name IN (
|
|
'client_request_id', 'provider', 'provider_callback_id',
|
|
'failure_code', 'raw_response'
|
|
) ORDER BY column_name;
|
|
|
|
SELECT table_name, index_name FROM information_schema.statistics
|
|
WHERE table_schema = DATABASE()
|
|
AND ((table_name = 'qipai_refunds'
|
|
AND index_name IN (
|
|
'uq_qipai_refund_client_request', 'uq_qipai_refund_callback'
|
|
))
|
|
OR (table_name = 'qipai_reconciliation_runs'
|
|
AND index_name = 'uq_qipai_reconciliation_request'))
|
|
GROUP BY table_name, index_name ORDER BY table_name, index_name;
|
|
|
|
SELECT version, name FROM qipai_schema_migrations WHERE version = '2026062216';
|