feat(M01-C): 建立MySQL异步任务基础
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
-- Verify M01-C asynchronous task foundation.
|
||||
|
||||
SELECT table_name
|
||||
FROM information_schema.tables
|
||||
WHERE table_schema = DATABASE()
|
||||
AND table_name IN ('qipai_outbox_events', 'qipai_async_tasks')
|
||||
ORDER BY table_name;
|
||||
|
||||
SELECT table_name, index_name
|
||||
FROM information_schema.statistics
|
||||
WHERE table_schema = DATABASE()
|
||||
AND (
|
||||
(table_name = 'qipai_outbox_events' AND index_name IN (
|
||||
'uq_qipai_outbox_events_idempotency',
|
||||
'idx_qipai_outbox_events_dispatch'
|
||||
))
|
||||
OR
|
||||
(table_name = 'qipai_async_tasks' AND index_name IN (
|
||||
'uq_qipai_async_tasks_idempotency',
|
||||
'idx_qipai_async_tasks_claim',
|
||||
'idx_qipai_async_tasks_lease'
|
||||
))
|
||||
)
|
||||
GROUP BY table_name, index_name
|
||||
ORDER BY table_name, index_name;
|
||||
|
||||
SELECT version, name
|
||||
FROM qipai_schema_migrations
|
||||
WHERE version = '2026061802';
|
||||
Reference in New Issue
Block a user