Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove foreign key from MySQL visibility schema #3937

Merged
merged 1 commit into from
Feb 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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