1.0.570.verify.sql 652 B

1234567891011121314151617181920
  1. -- 1.0.570.verify.sql
  2. SELECT COUNT(*) = 1
  3. FROM information_schema.tables
  4. WHERE table_schema = DATABASE()
  5. AND table_name = 'ado_kpi_baseline_snapshot';
  6. SELECT COUNT(*) = 8
  7. FROM information_schema.columns
  8. WHERE table_schema = DATABASE()
  9. AND table_name = 'ado_kpi_baseline_snapshot'
  10. AND column_name IN (
  11. 'snapshot_code','tenant_id','factory_id','module_code',
  12. 'metric_code','lvl','biz_date','metric_value');
  13. SELECT COUNT(*) = 1
  14. FROM information_schema.statistics
  15. WHERE table_schema = DATABASE()
  16. AND table_name = 'ado_kpi_baseline_snapshot'
  17. AND index_name = 'uk_kpi_baseline_snapshot'
  18. AND column_name = 'factory_id';