Skip to content
Snippets Groups Projects
Verified Commit cd2bc167 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

FIX: versions in patch

parent 43456eec
No related branches found
No related tags found
1 merge request!33Fix accent sensitivity
Pipeline #60528 failed
...@@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ...@@ -22,7 +22,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- [SQL dump migration can now be applied twice](https://gitlab.indiscale.com/caosdb/src/caosdb-mysqlbackend/-/issues/60): Fixed an error in the regex. - [SQL dump migration can now be applied twice](https://gitlab.indiscale.com/caosdb/src/caosdb-mysqlbackend/-/issues/60): Fixed an error in the regex.
- [linahead-server#264 Queries ignore accents and umlauts](https://gitlab.com/linkahead/linkahead-server/-/issues/264): Changed to more appropriate - [linkahead-server#264 Queries ignore accents and umlauts](https://gitlab.com/linkahead/linkahead-server/-/issues/264): Changed to more appropriate
collation and character sets. collation and character sets.
### Security ### Security
......
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
# #
# Set the collation so that accents on characters become relevant. # Set the collation so that accents on characters become relevant.
NEW_VERSION="v8.0.0" OLD_VERSION="v8.0.0"
OLD_VERSION="v8.0.1" NEW_VERSION="v8.0.1"
if [ -z "$UTILSPATH" ]; then if [ -z "$UTILSPATH" ]; then
UTILSPATH="../utils" UTILSPATH="../utils"
...@@ -41,6 +41,33 @@ tables=$(mysql_execute "SHOW TABLE status where Collation='utf8mb3_unicode_ci';" ...@@ -41,6 +41,33 @@ tables=$(mysql_execute "SHOW TABLE status where Collation='utf8mb3_unicode_ci';"
for table in tables; do for table in tables; do
mysql_execute "ALTER TABLE $table CONVERT TO CHARACTER SET utf8mb4 COLLATE uca1400_as_ci;" mysql_execute "ALTER TABLE $table CONVERT TO CHARACTER SET utf8mb4 COLLATE uca1400_as_ci;"
done done
# mysql_execute "UPDATE data_type SET datatype=17 WHERE datatype=3"
# cd git/caosdb-mysqlbackend/
# UTILSPATH=utils
# . utils/patch_header.sh
# show table status where Collation='utf8mb3_unicode_ci';
# name_data
# text_data
# show table status like 'name_data';
# select * from name_data where value like 'Yield%';
# update name_data SET value='Yield-stréss' where entity_id=354;
# update name_data SET value='Yield-strés😋s' where entity_id=354;
# select * from name_data where value='Yield-stress';
# # Unicode 14.0.0
# ALTER TABLE name_data CONVERT TO CHARACTER SET utf8mb4 COLLATE uca1400_as_ci;
# FULL_COLLATION_NAME: utf8mb4_uca1400_as_ci;
# COLLATION_NAME: uca1400_as_ci;
# mariadb -h sqldb -u caosdb -prandom1234 --default-character-set=utf8mb4 caosdb
update_version $NEW_VERSION update_version $NEW_VERSION
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment