Created
February 15, 2018 13:58
-
-
Save Teketel/6637b20fe5c1795a019d5a90e91f8d80 to your computer and use it in GitHub Desktop.
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
ALTER DATABASE `<DB NAME>` CHARACTER SET = utf8mb4 COLLATE utf8mb4_unicode_ci; | |
SET foreign_key_checks = 0; | |
ALTER TABLE `<TABLE NAME>` CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; | |
ALTER TABLE `<TABLE NAME>` CHANGE <COLUMN NAME> <COLUMN NAME> LONGTEXT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL; | |
SET foreign_key_checks = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment