Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 61e1079

Browse files
authored
fix(sql): add unique constraint on hook uuid (#5099)
Signed-off-by: francois samin <[email protected]>
1 parent b0ab0f7 commit 61e1079

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

engine/sql/193_hooks_uuid.sql

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
-- +migrate Up
2+
3+
CREATE UNIQUE INDEX idx_w_node_hook_uuid
4+
ON w_node_hook (uuid);
5+
6+
ALTER TABLE w_node_hook
7+
ADD CONSTRAINT unique_w_node_hook_uuid
8+
UNIQUE USING INDEX idx_w_node_hook_uuid;
9+
10+
-- +migrate Down
11+
12+
SELECT 1;

0 commit comments

Comments
 (0)