-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workaround to make SMUI work with mysql 8...
- Loading branch information
Showing
6 changed files
with
71 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
DOT='\033[0;37m.\033[0m' | ||
while [[ "$(docker inspect --format "{{json .State.Health.Status }}" mysql8)" != "\"healthy\"" ]]; do printf ${DOT}; sleep 5; done | ||
while [[ "$(docker inspect --format "{{json .State.Health.Status }}" mysql)" != "\"healthy\"" ]]; do printf ${DOT}; sleep 5; done | ||
echo "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# --- !Ups | ||
|
||
-- Add tag table. | ||
-- Tags can be assigned to a single solr index or they can be global to all solr indexes (solr_index_id = null). | ||
-- Exported tags must have a property (e.g. "tenant") and a value (e.g. "MO") so that the full tag would be "tenant:MO". | ||
-- Tags that are not exported can have a value only without a property. | ||
-- | ||
-- exported: 1 = is exported to querqy | ||
-- 0 = is not exported to querqy and only used for tagging purposes in SMUI itself | ||
create table input_tag ( | ||
id varchar(36) not null primary key, | ||
solr_index_id varchar(36), | ||
property varchar(1000), | ||
tag_value varchar(1000) not null, | ||
exported int not null, | ||
predefined int not null, | ||
last_update timestamp not null | ||
); | ||
|
||
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 | ||
|
||
create table tag_2_input ( | ||
tag_id varchar(36) not null, | ||
input_id varchar(36) not null, | ||
last_update timestamp not null, | ||
primary key (tag_id, input_id) | ||
); | ||
|
||
create index tag_2_input_input_id_index on tag_2_input (input_id); | ||
|
||
# --- !Downs | ||
|
||
drop table input_tag; | ||
drop table tag_2_input; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# --- !Ups | ||
|
||
-- Ensure that we do not allow duplicate solr indexes with same 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 (500)); | ||
|
||
|
||
|
||
# --- !Downs | ||
|
||
drop index solr_index_field_name | ||
drop index suggested_solr_field_name_solr_index; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters