Skip to content

Commit

Permalink
fix up/down in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
killua-eu committed Oct 9, 2023
1 parent 50ff575 commit 009ded7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions glued/Config/Migrations/20231009002603_services.sql
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
-- migrate:up

DROP TABLE IF EXISTS `t_if__services`;

-- migrate:down

CREATE TABLE `t_if__services` (
`c_uuid` binary(16) NOT NULL DEFAULT (uuid_to_bin(uuid(),true)) COMMENT 'IF service instance uuid (v4), autogenerated on SQL insert if not provided. NOTE to always insert with UUID_TO_BIN(UUID(), true)',
`c_data` json NOT NULL COMMENT 'JSON data',
Expand All @@ -16,3 +12,7 @@ CREATE TABLE `t_if__services` (
UNIQUE KEY `c_hash` (`c_hash`),
KEY `idx_type` (`c_type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='Integration framework service instances (service / remote host / authentication).';

-- migrate:down

DROP TABLE IF EXISTS `t_if__services`;

0 comments on commit 009ded7

Please sign in to comment.