diff --git a/conf/evolutions/default/3.sql b/conf/evolutions/default/3.sql index a4f659d0..ee55a478 100644 --- a/conf/evolutions/default/3.sql +++ b/conf/evolutions/default/3.sql @@ -17,7 +17,7 @@ create table input_tag ( last_update timestamp not null ); -create unique index input_tag_property_value_index on input_tag (solr_index_id, property, tag_value); +create unique index input_tag_property_value_index on input_tag (solr_index_id, property (100), tag_value (100)); create index input_tag_predefined_index on input_tag (predefined); -- Add table tag_2_input diff --git a/conf/evolutions/default/8.sql b/conf/evolutions/default/8.sql index f63b1071..119f2b80 100644 --- a/conf/evolutions/default/8.sql +++ b/conf/evolutions/default/8.sql @@ -1,10 +1,10 @@ # --- !Ups -- Ensure that we do not allow duplicate solr indexes with same name. -create unique index solr_index_field_name on solr_index (name); +create unique index solr_index_field_name on solr_index (name (500)); -- Ensure that we do not allow duplicate suggested solr fields for the same solr index. -create unique index suggested_solr_field_name_solr_index on suggested_solr_field (solr_index_id, name); +create unique index suggested_solr_field_name_solr_index on suggested_solr_field (solr_index_id, name (500));