Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
etherpad-sql-filter
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Robin Sonnabend
etherpad-sql-filter
Commits
b96609b6
Verified
Commit
b96609b6
authored
4 years ago
by
Robin Sonnabend
Browse files
Options
Downloads
Patches
Plain Diff
Use utf8mb4 collation and charset
parent
f4a21a99
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
convert.py
+3
-3
3 additions, 3 deletions
convert.py
with
3 additions
and
3 deletions
convert.py
+
3
−
3
View file @
b96609b6
...
...
@@ -86,10 +86,10 @@ def write_header(file):
file
.
write
(
"
DROP TABLE IF EXISTS `store`;
\n
"
)
file
.
write
(
"""
CREATE TABLE `store` (
`key` varchar(100) COLLATE utf8_bin NOT NULL DEFAULT
''
,
`value` longtext COLLATE utf8_bin NOT NULL,
`key` varchar(100) COLLATE utf8
mb4
_bin NOT NULL DEFAULT
''
,
`value` longtext COLLATE utf8
mb4
_bin NOT NULL,
PRIMARY KEY (`key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
) ENGINE=InnoDB DEFAULT CHARSET=utf8
mb4
COLLATE=utf8
mb4
_bin;
"""
)
file
.
write
(
"
LOCK TABLES `store` WRITE;
\n
"
)
...
...
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