Files
qipai/database/migrations/2026081003_m08d_franchise_leads.verify.sql
T
2026-08-10 13:17:19 +08:00

20 lines
688 B
SQL

SELECT table_name
FROM information_schema.tables
WHERE table_schema = DATABASE()
AND table_name IN ('qipai_franchise_applications', 'qipai_franchise_follow_ups')
ORDER BY table_name;
SELECT table_name, index_name
FROM information_schema.statistics
WHERE table_schema = DATABASE()
AND ((table_name = 'qipai_franchise_applications'
AND index_name IN ('uq_qipai_franchise_client_request', 'idx_qipai_franchise_queue'))
OR (table_name = 'qipai_franchise_follow_ups'
AND index_name = 'idx_qipai_franchise_follow_up_history'))
GROUP BY table_name, index_name
ORDER BY table_name, index_name;
SELECT version, name
FROM qipai_schema_migrations
WHERE version = '2026081003';