1.0.538.verify.sql 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. -- 1.0.538.verify.sql — 每条 SELECT 必须返回真值
  2. SELECT COUNT(*) = 2
  3. FROM information_schema.columns
  4. WHERE table_schema = DATABASE()
  5. AND table_name = 'ItemMaster'
  6. AND column_name IN ('source_system', 'source_updated_at');
  7. SELECT COUNT(*) = 2
  8. FROM information_schema.columns
  9. WHERE table_schema = DATABASE()
  10. AND table_name = 'CustMaster'
  11. AND column_name IN ('source_system', 'source_updated_at');
  12. SELECT COUNT(*) = 2
  13. FROM information_schema.columns
  14. WHERE table_schema = DATABASE()
  15. AND table_name = 'SuppMaster'
  16. AND column_name IN ('source_system', 'source_updated_at');
  17. SELECT COUNT(*) = 2
  18. FROM information_schema.columns
  19. WHERE table_schema = DATABASE()
  20. AND table_name = 'LocationMaster'
  21. AND column_name IN ('source_system', 'source_updated_at');
  22. SELECT COUNT(*) = 2
  23. FROM information_schema.columns
  24. WHERE table_schema = DATABASE()
  25. AND table_name = 'EmployeeMaster'
  26. AND column_name IN ('source_system', 'source_updated_at');
  27. SELECT COUNT(*) = 5
  28. FROM mdp_entity
  29. WHERE entity_code IN (
  30. 'S5_INVENTORY_TXN', 'S5_INVENTORY_OPENING_BALANCE',
  31. 'S7_FINISHED_ONHAND', 'S7_FINISHED_OPENING_BALANCE',
  32. 'MDM_EMPLOYEE_HEADCOUNT')
  33. AND inbound_enabled = 1;