Created
May 17, 2016 14:10
-
-
Save nekoruri/8057283e226c3b9e3cbd72a7aeb3d639 to your computer and use it in GitHub Desktop.
utf8mb4 support for WordPress MU Domain Mapping
This file contains hidden or 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
Index: domain_mapping.php | |
=================================================================== | |
--- domain_mapping.php (revision 1418770) | |
+++ domain_mapping.php (working copy) | |
@@ -98,7 +98,7 @@ | |
$wpdb->query( "CREATE TABLE IF NOT EXISTS `{$wpdb->dmtable}` ( | |
`id` bigint(20) NOT NULL auto_increment, | |
`blog_id` bigint(20) NOT NULL, | |
- `domain` varchar(255) NOT NULL, | |
+ `domain` varchar(191) NOT NULL, | |
`active` tinyint(4) default '1', | |
PRIMARY KEY (`id`), | |
KEY `blog_id` (`blog_id`,`domain`,`active`) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment