Skip to content

Instantly share code, notes, and snippets.

@nekoruri
Created May 17, 2016 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nekoruri/8057283e226c3b9e3cbd72a7aeb3d639 to your computer and use it in GitHub Desktop.
Save nekoruri/8057283e226c3b9e3cbd72a7aeb3d639 to your computer and use it in GitHub Desktop.
utf8mb4 support for WordPress MU Domain Mapping
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