Skip to content

Commit

Permalink
schema/mysql: Add new index for customvar_flat
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Jul 11, 2023
1 parent a57f0cb commit e3150ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion schema/mysql/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,8 @@ CREATE TABLE customvar_flat (

PRIMARY KEY (id),

INDEX idx_customvar_flat_customvar_id (customvar_id)
INDEX idx_customvar_flat_customvar_id (customvar_id),
INDEX idx_customvar_flat_flatname_flatvalue (flatname, flatvalue(255)) COMMENT 'Lists filtered by custom variable'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin ROW_FORMAT=DYNAMIC;

CREATE TABLE user (
Expand Down
2 changes: 2 additions & 0 deletions schema/mysql/upgrades/1.2.0.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ALTER TABLE customvar_flat
ADD INDEX idx_customvar_flat_flatname_flatvalue (flatname, flatvalue(255)) COMMENT 'Lists filtered by custom variable';

0 comments on commit e3150ce

Please sign in to comment.