Skip to content

Commit

Permalink
Added MySQL collation conversion (refs #46)
Browse files Browse the repository at this point in the history
  • Loading branch information
timosmit committed Jan 4, 2019
1 parent 4500215 commit 7f05834
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions database/upgrade/1.1.0/mysql.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,34 @@
-- convert databases to UTF-8
ALTER TABLE `wolfadmin`.`aliases`
CONVERT TO
CHARACTER SET 'utf8'
COLLATE 'utf8_unicode_ci';

ALTER TABLE `wolfadmin`.`levels`
CONVERT TO
CHARACTER SET 'utf8'
COLLATE 'utf8_unicode_ci';

ALTER TABLE `wolfadmin`.`maps`
CONVERT TO
CHARACTER SET 'utf8'
COLLATE 'utf8_unicode_ci';

ALTER TABLE `wolfadmin`.`players`
CONVERT TO
CHARACTER SET 'utf8'
COLLATE 'utf8_unicode_ci';

ALTER TABLE `wolfadmin`.`records`
CONVERT TO
CHARACTER SET 'utf8'
COLLATE 'utf8_unicode_ci';

ALTER TABLE `wolfadmin`.`warns`
CONVERT TO
CHARACTER SET 'utf8'
COLLATE 'utf8_unicode_ci';

-- create config table
CREATE TABLE IF NOT EXISTS `config` (
`id` varchar(64) NOT NULL PRIMARY KEY,
Expand Down

0 comments on commit 7f05834

Please sign in to comment.