-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
处理Review意见。
- Loading branch information
Showing
10 changed files
with
84 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
support-files/sql/job-execute/0023_job_execute_20231113-1000_V3.8.4_mysql.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
USE job_execute; | ||
|
||
SET NAMES utf8mb4; | ||
|
||
DROP PROCEDURE IF EXISTS job_schema_update; | ||
|
||
DELIMITER <JOB_UBF> | ||
|
||
CREATE PROCEDURE job_schema_update() | ||
BEGIN | ||
|
||
DECLARE db VARCHAR(100); | ||
SET AUTOCOMMIT = 0; | ||
SELECT DATABASE() INTO db; | ||
|
||
IF NOT EXISTS(SELECT 1 | ||
FROM information_schema.statistics | ||
WHERE TABLE_SCHEMA = db | ||
AND TABLE_NAME = 'file_source_task_log' | ||
AND INDEX_NAME = 'uk_step_instance_id_execute_count') THEN | ||
ALTER TABLE file_source_task_log ADD UNIQUE INDEX `uk_step_instance_id_execute_count` (`step_instance_id`,`execute_count`); | ||
END IF; | ||
|
||
IF EXISTS(SELECT 1 | ||
FROM information_schema.statistics | ||
WHERE TABLE_SCHEMA = db | ||
AND TABLE_NAME = 'file_source_task_log' | ||
AND INDEX_NAME = 'idx_step_instance_id_execute_count') THEN | ||
ALTER TABLE file_source_task_log DROP INDEX `idx_step_instance_id_execute_count`; | ||
END IF; | ||
|
||
COMMIT; | ||
END <JOB_UBF> | ||
DELIMITER ; | ||
COMMIT; | ||
|
||
CALL job_schema_update(); | ||
|
||
DROP PROCEDURE IF EXISTS job_schema_update; |