tables_mysql(备份,请忽略).sql 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. #
  2. # Quartz seems to work best with the driver mm.mysql-2.0.7-bin.jar
  3. #
  4. # PLEASE consider using mysql with innodb tables to avoid locking issues
  5. #
  6. # In your Quartz properties file, you'll need to set
  7. # org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.StdJDBCDelegate
  8. #
  9. DROP TABLE IF EXISTS QRTZ_FIRED_TRIGGERS;
  10. DROP TABLE IF EXISTS QRTZ_PAUSED_TRIGGER_GRPS;
  11. DROP TABLE IF EXISTS QRTZ_SCHEDULER_STATE;
  12. DROP TABLE IF EXISTS QRTZ_LOCKS;
  13. DROP TABLE IF EXISTS QRTZ_SIMPLE_TRIGGERS;
  14. DROP TABLE IF EXISTS QRTZ_SIMPROP_TRIGGERS;
  15. DROP TABLE IF EXISTS QRTZ_CRON_TRIGGERS;
  16. DROP TABLE IF EXISTS QRTZ_BLOB_TRIGGERS;
  17. DROP TABLE IF EXISTS QRTZ_TRIGGERS;
  18. DROP TABLE IF EXISTS QRTZ_JOB_DETAILS;
  19. DROP TABLE IF EXISTS QRTZ_CALENDARS;
  20. CREATE TABLE QRTZ_JOB_DETAILS
  21. (
  22. SCHED_NAME VARCHAR(120) NOT NULL,
  23. JOB_NAME VARCHAR(200) NOT NULL,
  24. JOB_GROUP VARCHAR(200) NOT NULL,
  25. DESCRIPTION VARCHAR(250) NULL,
  26. JOB_CLASS_NAME VARCHAR(250) NOT NULL,
  27. IS_DURABLE VARCHAR(1) NOT NULL,
  28. IS_NONCONCURRENT VARCHAR(1) NOT NULL,
  29. IS_UPDATE_DATA VARCHAR(1) NOT NULL,
  30. REQUESTS_RECOVERY VARCHAR(1) NOT NULL,
  31. JOB_DATA BLOB NULL,
  32. PRIMARY KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
  33. );
  34. CREATE TABLE QRTZ_TRIGGERS
  35. (
  36. SCHED_NAME VARCHAR(120) NOT NULL,
  37. TRIGGER_NAME VARCHAR(200) NOT NULL,
  38. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  39. JOB_NAME VARCHAR(200) NOT NULL,
  40. JOB_GROUP VARCHAR(200) NOT NULL,
  41. DESCRIPTION VARCHAR(250) NULL,
  42. NEXT_FIRE_TIME BIGINT(13) NULL,
  43. PREV_FIRE_TIME BIGINT(13) NULL,
  44. PRIORITY INTEGER NULL,
  45. TRIGGER_STATE VARCHAR(16) NOT NULL,
  46. TRIGGER_TYPE VARCHAR(8) NOT NULL,
  47. START_TIME BIGINT(13) NOT NULL,
  48. END_TIME BIGINT(13) NULL,
  49. CALENDAR_NAME VARCHAR(200) NULL,
  50. MISFIRE_INSTR SMALLINT(2) NULL,
  51. JOB_DATA BLOB NULL,
  52. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  53. FOREIGN KEY (SCHED_NAME,JOB_NAME,JOB_GROUP)
  54. REFERENCES QRTZ_JOB_DETAILS(SCHED_NAME,JOB_NAME,JOB_GROUP)
  55. );
  56. CREATE TABLE QRTZ_SIMPLE_TRIGGERS
  57. (
  58. SCHED_NAME VARCHAR(120) NOT NULL,
  59. TRIGGER_NAME VARCHAR(200) NOT NULL,
  60. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  61. REPEAT_COUNT BIGINT(7) NOT NULL,
  62. REPEAT_INTERVAL BIGINT(12) NOT NULL,
  63. TIMES_TRIGGERED BIGINT(10) NOT NULL,
  64. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  65. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  66. REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  67. );
  68. CREATE TABLE QRTZ_CRON_TRIGGERS
  69. (
  70. SCHED_NAME VARCHAR(120) NOT NULL,
  71. TRIGGER_NAME VARCHAR(200) NOT NULL,
  72. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  73. CRON_EXPRESSION VARCHAR(200) NOT NULL,
  74. TIME_ZONE_ID VARCHAR(80),
  75. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  76. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  77. REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  78. );
  79. CREATE TABLE QRTZ_SIMPROP_TRIGGERS
  80. (
  81. SCHED_NAME VARCHAR(120) NOT NULL,
  82. TRIGGER_NAME VARCHAR(200) NOT NULL,
  83. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  84. STR_PROP_1 VARCHAR(512) NULL,
  85. STR_PROP_2 VARCHAR(512) NULL,
  86. STR_PROP_3 VARCHAR(512) NULL,
  87. INT_PROP_1 INT NULL,
  88. INT_PROP_2 INT NULL,
  89. LONG_PROP_1 BIGINT NULL,
  90. LONG_PROP_2 BIGINT NULL,
  91. DEC_PROP_1 NUMERIC(13,4) NULL,
  92. DEC_PROP_2 NUMERIC(13,4) NULL,
  93. BOOL_PROP_1 VARCHAR(1) NULL,
  94. BOOL_PROP_2 VARCHAR(1) NULL,
  95. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  96. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  97. REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  98. );
  99. CREATE TABLE QRTZ_BLOB_TRIGGERS
  100. (
  101. SCHED_NAME VARCHAR(120) NOT NULL,
  102. TRIGGER_NAME VARCHAR(200) NOT NULL,
  103. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  104. BLOB_DATA BLOB NULL,
  105. PRIMARY KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP),
  106. FOREIGN KEY (SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  107. REFERENCES QRTZ_TRIGGERS(SCHED_NAME,TRIGGER_NAME,TRIGGER_GROUP)
  108. );
  109. CREATE TABLE QRTZ_CALENDARS
  110. (
  111. SCHED_NAME VARCHAR(120) NOT NULL,
  112. CALENDAR_NAME VARCHAR(200) NOT NULL,
  113. CALENDAR BLOB NOT NULL,
  114. PRIMARY KEY (SCHED_NAME,CALENDAR_NAME)
  115. );
  116. CREATE TABLE QRTZ_PAUSED_TRIGGER_GRPS
  117. (
  118. SCHED_NAME VARCHAR(120) NOT NULL,
  119. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  120. PRIMARY KEY (SCHED_NAME,TRIGGER_GROUP)
  121. );
  122. CREATE TABLE QRTZ_FIRED_TRIGGERS
  123. (
  124. SCHED_NAME VARCHAR(120) NOT NULL,
  125. ENTRY_ID VARCHAR(95) NOT NULL,
  126. TRIGGER_NAME VARCHAR(200) NOT NULL,
  127. TRIGGER_GROUP VARCHAR(200) NOT NULL,
  128. INSTANCE_NAME VARCHAR(200) NOT NULL,
  129. FIRED_TIME BIGINT(13) NOT NULL,
  130. SCHED_TIME BIGINT(13) NOT NULL,
  131. PRIORITY INTEGER NOT NULL,
  132. STATE VARCHAR(16) NOT NULL,
  133. JOB_NAME VARCHAR(200) NULL,
  134. JOB_GROUP VARCHAR(200) NULL,
  135. IS_NONCONCURRENT VARCHAR(1) NULL,
  136. REQUESTS_RECOVERY VARCHAR(1) NULL,
  137. PRIMARY KEY (SCHED_NAME,ENTRY_ID)
  138. );
  139. CREATE TABLE QRTZ_SCHEDULER_STATE
  140. (
  141. SCHED_NAME VARCHAR(120) NOT NULL,
  142. INSTANCE_NAME VARCHAR(200) NOT NULL,
  143. LAST_CHECKIN_TIME BIGINT(13) NOT NULL,
  144. CHECKIN_INTERVAL BIGINT(13) NOT NULL,
  145. PRIMARY KEY (SCHED_NAME,INSTANCE_NAME)
  146. );
  147. CREATE TABLE QRTZ_LOCKS
  148. (
  149. SCHED_NAME VARCHAR(120) NOT NULL,
  150. LOCK_NAME VARCHAR(40) NOT NULL,
  151. PRIMARY KEY (SCHED_NAME,LOCK_NAME)
  152. );
  153. commit;