Skip to content

Commit

Permalink
Remove foreign key from MySQL visibility schema (#3937)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigozhou authored Feb 10, 2023
1 parent 2d9bb16 commit 8501b04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions schema/mysql/v8/visibility/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ CREATE TABLE custom_search_attributes (
KeywordList02 JSON GENERATED ALWAYS AS (search_attributes->"$.KeywordList02"),
KeywordList03 JSON GENERATED ALWAYS AS (search_attributes->"$.KeywordList03"),

PRIMARY KEY (namespace_id, run_id),
FOREIGN KEY (namespace_id, run_id) REFERENCES executions_visibility (namespace_id, run_id) ON DELETE CASCADE
PRIMARY KEY (namespace_id, run_id)
);

CREATE INDEX by_bool_01 ON custom_search_attributes (namespace_id, Bool01);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ CREATE TABLE custom_search_attributes (
KeywordList02 JSON GENERATED ALWAYS AS (search_attributes->"$.KeywordList02"),
KeywordList03 JSON GENERATED ALWAYS AS (search_attributes->"$.KeywordList03"),

PRIMARY KEY (namespace_id, run_id),
FOREIGN KEY (namespace_id, run_id) REFERENCES executions_visibility (namespace_id, run_id) ON DELETE CASCADE
PRIMARY KEY (namespace_id, run_id)
);

CREATE INDEX by_bool_01 ON custom_search_attributes (namespace_id, Bool01);
Expand Down

0 comments on commit 8501b04

Please sign in to comment.