1.6.1-1.7.0.sql 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. ALTER TABLE t_job DROP f_work_mode;
  2. ALTER TABLE t_task ADD f_component_module VARCHAR(200) NOT NULL, ADD INDEX task_f_component_module (f_component_module);
  3. ALTER TABLE t_task ADD f_auto_retries INT NOT NULL DEFAULT 0, ADD INDEX task_f_auto_retries (f_auto_retries);
  4. ALTER TABLE t_task ADD f_auto_retry_delay INT NOT NULL DEFAULT 0;
  5. ALTER TABLE t_task ADD f_worker_id VARCHAR(100), ADD INDEX task_f_worker_id (f_worker_id);
  6. ALTER TABLE t_task ADD f_cmd LONGTEXT;
  7. ALTER TABLE t_task ADD f_provider_info LONGTEXT NOT NULL;
  8. UPDATE t_task SET f_provider_info = '{}' WHERE f_provider_info = '';
  9. ALTER TABLE t_task ADD f_component_parameters LONGTEXT NOT NULL;
  10. UPDATE t_task SET f_component_parameters = '{}' WHERE f_component_parameters = '';
  11. ALTER TABLE t_machine_learning_model_info DROP f_work_mode;
  12. CREATE TABLE t_data_table_tracking (
  13. f_table_id BIGINT NOT NULL AUTO_INCREMENT,
  14. f_create_time BIGINT,
  15. f_create_date DATETIME,
  16. f_update_time BIGINT,
  17. f_update_date DATETIME,
  18. f_table_name VARCHAR(300),
  19. f_table_namespace VARCHAR(300),
  20. f_job_id VARCHAR(25),
  21. f_have_parent BOOL NOT NULL DEFAULT FALSE,
  22. f_parent_number INT NOT NULL DEFAULT 0,
  23. f_parent_table_name VARCHAR(500),
  24. f_parent_table_namespace VARCHAR(500),
  25. f_source_table_name VARCHAR(500),
  26. f_source_table_namespace VARCHAR(500),
  27. PRIMARY KEY (f_table_id),
  28. INDEX datatabletracking_f_table_name (f_table_name),
  29. INDEX datatabletracking_f_table_namespace (f_table_namespace),
  30. INDEX datatabletracking_f_job_id (f_job_id)
  31. );
  32. CREATE TABLE t_cache_record (
  33. f_cache_key VARCHAR(500) NOT NULL,
  34. f_create_time BIGINT,
  35. f_create_date DATETIME,
  36. f_update_time BIGINT,
  37. f_update_date DATETIME,
  38. f_cache LONGTEXT NOT NULL,
  39. f_job_id VARCHAR(25),
  40. f_role VARCHAR(50),
  41. f_party_id VARCHAR(10),
  42. f_component_name TEXT,
  43. f_task_id VARCHAR(100),
  44. f_task_version BIGINT,
  45. f_cache_name VARCHAR(50),
  46. t_ttl BIGINT NOT NULL DEFAULT 0,
  47. PRIMARY KEY (f_cache_key),
  48. INDEX cacherecord_f_job_id (f_job_id),
  49. INDEX cacherecord_f_role (f_role),
  50. INDEX cacherecord_f_party_id (f_party_id),
  51. INDEX cacherecord_f_task_id (f_task_id),
  52. INDEX cacherecord_f_task_version (f_task_version)
  53. );
  54. CREATE TABLE t_component_registry (
  55. f_create_time BIGINT,
  56. f_create_date DATETIME,
  57. f_update_time BIGINT,
  58. f_update_date DATETIME,
  59. f_provider_name VARCHAR(20) NOT NULL,
  60. f_version VARCHAR(10) NOT NULL,
  61. f_component_name VARCHAR(30) NOT NULL,
  62. f_module VARCHAR(128) NOT NULL,
  63. PRIMARY KEY (f_provider_name, f_version, f_component_name),
  64. INDEX componentregistryinfo_f_provider_name (f_provider_name),
  65. INDEX componentregistryinfo_f_version (f_version),
  66. INDEX componentregistryinfo_f_component_name (f_component_name)
  67. );
  68. CREATE TABLE t_component_provider_info (
  69. f_create_time BIGINT,
  70. f_create_date DATETIME,
  71. f_update_time BIGINT,
  72. f_update_date DATETIME,
  73. f_provider_name VARCHAR(20) NOT NULL,
  74. f_version VARCHAR(10) NOT NULL,
  75. f_class_path LONGTEXT NOT NULL,
  76. f_path VARCHAR(128) NOT NULL,
  77. f_python VARCHAR(128) NOT NULL,
  78. PRIMARY KEY (f_provider_name, f_version),
  79. INDEX componentproviderinfo_f_provider_name (f_provider_name),
  80. INDEX componentproviderinfo_f_version (f_version)
  81. );
  82. CREATE TABLE t_component_info (
  83. f_component_name VARCHAR(30) NOT NULL,
  84. f_create_time BIGINT,
  85. f_create_date DATETIME,
  86. f_update_time BIGINT,
  87. f_update_date DATETIME,
  88. f_component_alias LONGTEXT NOT NULL,
  89. f_default_provider VARCHAR(20) NOT NULL,
  90. f_support_provider LONGTEXT,
  91. PRIMARY KEY (f_component_name)
  92. );
  93. CREATE TABLE t_worker (
  94. f_worker_id VARCHAR(100) NOT NULL,
  95. f_create_time BIGINT,
  96. f_create_date DATETIME,
  97. f_update_time BIGINT,
  98. f_update_date DATETIME,
  99. f_worker_name VARCHAR(50) NOT NULL,
  100. f_job_id VARCHAR(25) NOT NULL,
  101. f_task_id VARCHAR(100) NOT NULL,
  102. f_task_version BIGINT NOT NULL,
  103. f_role VARCHAR(50) NOT NULL,
  104. f_party_id VARCHAR(10) NOT NULL,
  105. f_run_ip VARCHAR(100),
  106. f_run_pid INT,
  107. f_http_port INT,
  108. f_grpc_port INT,
  109. f_config LONGTEXT,
  110. f_cmd LONGTEXT,
  111. f_start_time BIGINT,
  112. f_start_date DATETIME,
  113. f_end_time BIGINT,
  114. f_end_date DATETIME,
  115. PRIMARY KEY (f_worker_id),
  116. INDEX workerinfo_f_worker_name (f_worker_name),
  117. INDEX workerinfo_f_job_id (f_job_id),
  118. INDEX workerinfo_f_task_id (f_task_id),
  119. INDEX workerinfo_f_task_version (f_task_version),
  120. INDEX workerinfo_f_role (f_role),
  121. INDEX workerinfo_f_party_id (f_party_id)
  122. );
  123. CREATE TABLE t_dependencies_storage_meta (
  124. f_create_time BIGINT,
  125. f_create_date DATETIME,
  126. f_update_time BIGINT,
  127. f_update_date DATETIME,
  128. f_storage_engine VARCHAR(30) NOT NULL,
  129. f_type VARCHAR(20) NOT NULL,
  130. f_version VARCHAR(10) NOT NULL,
  131. f_storage_path VARCHAR(256),
  132. f_snapshot_time BIGINT,
  133. f_fate_flow_snapshot_time BIGINT,
  134. f_dependencies_conf LONGTEXT,
  135. f_upload_status BOOL NOT NULL DEFAULT FALSE,
  136. f_pid INT,
  137. PRIMARY KEY (f_storage_engine, f_type, f_version),
  138. INDEX dependenciesstoragemeta_f_version (f_version)
  139. );
  140. ALTER TABLE t_storage_table_meta CHANGE f_type f_store_type VARCHAR(50), RENAME INDEX storagetablemetamodel_f_type TO storagetablemetamodel_f_store_type;
  141. ALTER TABLE t_storage_table_meta ADD f_extend_sid BOOL NOT NULL DEFAULT FALSE;
  142. ALTER TABLE t_storage_table_meta ADD f_auto_increasing_sid BOOL NOT NULL DEFAULT FALSE;
  143. ALTER TABLE t_storage_table_meta ADD f_read_access_time BIGINT;
  144. ALTER TABLE t_storage_table_meta ADD f_read_access_date DATETIME;
  145. ALTER TABLE t_storage_table_meta ADD f_write_access_time BIGINT;
  146. ALTER TABLE t_storage_table_meta ADD f_write_access_date DATETIME;
  147. ALTER TABLE t_storage_table_meta MODIFY f_create_time BIGINT;
  148. ALTER TABLE t_session_record RENAME COLUMN f_session_id TO f_engine_session_id, ADD INDEX sessionrecord_f_engine_session_id (f_engine_session_id);
  149. ALTER TABLE t_session_record ADD f_manager_session_id VARCHAR(150) NOT NULL, ADD INDEX sessionrecord_f_manager_session_id (f_manager_session_id);
  150. ALTER TABLE t_session_record MODIFY f_create_time BIGINT, DROP INDEX sessionrecord_f_create_time;
  151. ALTER TABLE t_session_record DROP PRIMARY KEY, ADD PRIMARY KEY (f_engine_type, f_engine_name, f_engine_session_id);