Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-mysqlbackend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-mysqlbackend
Commits
ed7a4977
Verified
Commit
ed7a4977
authored
2 months ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Patch
parent
f7a81cf4
No related branches found
No related tags found
1 merge request
!33
Fix accent sensitivity
Pipeline
#60538
failed
2 months ago
Stage: test
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
patches/patch20250130-8.0.1/patch.sh
+11
-0
11 additions, 0 deletions
patches/patch20250130-8.0.1/patch.sh
with
11 additions
and
0 deletions
patches/patch20250130-8.0.1/patch.sh
+
11
−
0
View file @
ed7a4977
...
...
@@ -36,11 +36,22 @@ check_version $OLD_VERSION
# Update charsets and collations.
# Remove some constraints first.
mysql_execute
'ALTER TABLE user_info DROP FOREIGN KEY `subjects_ibfk_2`;'
# Get all tables, drop first line, take first column
tables
=
$(
mysql_execute
"SHOW TABLE status where Collation='utf8mb3_unicode_ci';"
-B
|
tail
+2 |
awk
'{print $1}'
)
for
table
in
$tables
;
do
mysql_execute
"ALTER TABLE
$table
CONVERT TO CHARACTER SET utf8mb4 COLLATE uca1400_as_ci;"
done
# Add constraints again.
mysql_execute
'ALTER TABLE user_info MODIFY COLUMN `entity` VARCHAR(255) COLLATE utf8mb4_bin DEFAULT NULL;'
mysql_execute
'ALTER TABLE user_info ADD CONSTRAINT `subjects_ibfk_2` FOREIGN KEY (`entity`) REFERENCES `entity_ids` (`id`);'
# mysql_execute "UPDATE data_type SET datatype=17 WHERE datatype=3"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment