-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
69 additions
and
61 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 was deleted.
Oops, something went wrong.
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,19 @@ | ||
-- migrate:up | ||
|
||
CREATE TABLE `t_if__runs` ( | ||
`c_action_uuid` binary(16) NOT NULL COMMENT 'IF action UUID', | ||
`c_uuid` binary(16) NOT NULL DEFAULT (uuid_to_bin(uuid(),true)) COMMENT 'IF run UUID', | ||
`c_data` json NOT NULL COMMENT 'JSON response body', | ||
`c_ts_start` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Timestamp: run started', | ||
`c_ts_finish` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Timestamp: run finished', | ||
`c_status` varchar(32) CHARACTER SET ascii COLLATE ascii_general_ci DEFAULT NULL COMMENT 'Integration run status: init, ok, fail, skip', | ||
`c_hash` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci DEFAULT NULL COMMENT 'Response data hash', | ||
`c_fid` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin DEFAULT NULL COMMENT 'Response foreign identifier', | ||
PRIMARY KEY (`c_uuid`), | ||
KEY `idx_act_uuid` (`c_action_uuid`), | ||
KEY `idx_response_hash` (`c_hash`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='Integration framework service logs.'; | ||
|
||
-- migrate:down | ||
|
||
DROP TABLE IF EXISTS `t_if__runs`; |
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
11 changes: 0 additions & 11 deletions
11
glued/Config/Migrations/20231022001113_logs_add_unique_constraint.sql
This file was deleted.
Oops, something went wrong.
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,20 @@ | ||
-- migrate:up | ||
|
||
CREATE TABLE `t_if__objects` ( | ||
`c_uuid` binary(16) NOT NULL DEFAULT (uuid_to_bin(uuid(),true)) COMMENT 'Object UUID', | ||
`c_action` binary(16) NOT NULL COMMENT 'Action UUID (infer action scheme, service, and service deployment)', | ||
`c_fid` varchar(255) NOT NULL COMMENT 'JSON data object foreign unique identifier', | ||
`c_rev` int unsigned DEFAULT '0' COMMENT 'JSON data object revision number', | ||
`c_iat` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Timestamp of issuance', | ||
`c_uat` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'Timestamp of update', | ||
`c_data` json DEFAULT NULL, | ||
`c_hash` binary(16) GENERATED ALWAYS AS (unhex(md5(`c_data`))) STORED COMMENT 'MD5 hash of c_data', | ||
`c_run` binary(16) DEFAULT NULL COMMENT 'Response UUID (infer run hash and run fid)', | ||
PRIMARY KEY (`c_uuid`), | ||
UNIQUE KEY `unique_action_fid` (`c_action`,`c_fid`), | ||
KEY `idx_c_action` (`c_action`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci; | ||
|
||
-- migrate:down | ||
|
||
DROP TABLE IF EXISTS `t_if__objects`; |
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