From e8d869f26e54382292fddcb81bb84d8788564279 Mon Sep 17 00:00:00 2001 From: Seth Date: Thu, 21 Oct 2021 14:26:48 -0400 Subject: [PATCH] Restrict key length for compatibility with older MySQL versions --- install/inc/schema_mysql.sql | 2 +- support/sql/migrations/173.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/inc/schema_mysql.sql b/install/inc/schema_mysql.sql index 2fffc9635c..0fed1d359f 100644 --- a/install/inc/schema_mysql.sql +++ b/install/inc/schema_mysql.sql @@ -2185,7 +2185,7 @@ create index i_table_num on ca_attributes(table_num); create index i_element_id on ca_attributes(element_id); create index i_row_table_num on ca_attributes(row_id, table_num); create index i_prefetch ON ca_attributes(row_id, element_id, table_num); -create index i_value_source on ca_attribute_values(value_source); +create index i_value_source on ca_attribute_values(value_source(255)); /*==========================================================================*/ diff --git a/support/sql/migrations/173.sql b/support/sql/migrations/173.sql index 6b46aa5280..3f953bf8f0 100644 --- a/support/sql/migrations/173.sql +++ b/support/sql/migrations/173.sql @@ -7,7 +7,7 @@ /*==========================================================================*/ ALTER TABLE ca_attributes ADD COLUMN value_source varchar(1024) null default null; -CREATE INDEX i_value_source ON ca_attributes(value_source); +CREATE INDEX i_value_source ON ca_attributes(value_source(255)); /*==========================================================================*/