ry_dm_clean.sql 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. -- ============================================
  2. -- 达梦数据库清理脚本(COMPLAINT 模式)
  3. -- 用途:删除当前模式下所有业务表(含 QRTZ 表)
  4. -- 注意:仅限开发/测试库使用,生产库严禁执行!
  5. -- ============================================
  6. -- QRTZ 表(按外键依赖顺序,先子后父)
  7. drop table if exists QRTZ_FIRED_TRIGGERS;
  8. drop table if exists QRTZ_PAUSED_TRIGGER_GRPS;
  9. drop table if exists QRTZ_SCHEDULER_STATE;
  10. drop table if exists QRTZ_LOCKS;
  11. drop table if exists QRTZ_SIMPLE_TRIGGERS;
  12. drop table if exists QRTZ_SIMPROP_TRIGGERS;
  13. drop table if exists QRTZ_CRON_TRIGGERS;
  14. drop table if exists QRTZ_BLOB_TRIGGERS;
  15. drop table if exists QRTZ_TRIGGERS;
  16. drop table if exists QRTZ_JOB_DETAILS;
  17. drop table if exists QRTZ_CALENDARS;
  18. -- 若依业务表
  19. drop table if exists gen_table_column;
  20. drop table if exists gen_table;
  21. drop table if exists sys_notice_read;
  22. drop table if exists sys_notice;
  23. drop table if exists sys_job_log;
  24. drop table if exists sys_job;
  25. drop table if exists sys_logininfor;
  26. drop table if exists sys_config;
  27. drop table if exists sys_dict_data;
  28. drop table if exists sys_dict_type;
  29. drop table if exists sys_oper_log;
  30. drop table if exists sys_user_post;
  31. drop table if exists sys_role_dept;
  32. drop table if exists sys_role_menu;
  33. drop table if exists sys_user_role;
  34. drop table if exists sys_menu;
  35. drop table if exists sys_role;
  36. drop table if exists sys_post;
  37. drop table if exists sys_user;
  38. drop table if exists sys_dept;
  39. commit;