Skip to content

Commit

Permalink
fix: [CO-869] [MariaDB] Upgrade to 10.4.31 - max index length 3072 by…
Browse files Browse the repository at this point in the history
…tes (#380)
  • Loading branch information
sonersivri authored Nov 14, 2023
1 parent 3d80b0f commit a7bce3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions store/db/create_database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.mail_item (
INDEX i_index_id (mailbox_id, index_id), -- for looking up based on search results
INDEX i_date (mailbox_id, date), -- fallback index in case other constraints are not specified
INDEX i_mod_metadata (mailbox_id, mod_metadata), -- used by the sync code
INDEX i_locator (mailbox_id, locator), -- used in HSM and CoherencyCheck operations
INDEX i_locator (mailbox_id, locator (255)), -- used in HSM and CoherencyCheck operations
INDEX i_uuid (mailbox_id, uuid), -- for looking up by uuid

UNIQUE INDEX i_name_folder_id (mailbox_id, folder_id, name), -- for namespace uniqueness
Expand Down Expand Up @@ -85,7 +85,7 @@ CREATE TABLE IF NOT EXISTS ${DATABASE_NAME}.mail_item_dumpster (
INDEX i_index_id (mailbox_id, index_id), -- for looking up based on search results
INDEX i_date (mailbox_id, date), -- fallback index in case other constraints are not specified
INDEX i_mod_metadata (mailbox_id, mod_metadata), -- used by the sync code
INDEX i_locator (mailbox_id, locator), -- used in HSM and CoherencyCheck operations
INDEX i_locator (mailbox_id, locator (255)), -- used in HSM and CoherencyCheck operations
INDEX i_uuid (mailbox_id, uuid), -- for looking up by uuid

-- Must not enforce unique index on (mailbox_id, folder_id, name) for the dumpster version!
Expand Down

0 comments on commit a7bce3a

Please sign in to comment.