Skip to content

Commit 0a77805

Browse files
zhenlei520yang-xiaodong
authored andcommitted
Fixed emoji storage failure (#305)
1 parent 8692ebf commit 0a77805

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/DotNetCore.CAP.MySql/IStorage.MySql.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected virtual string CreateDbTablesScript(string prefix)
6969
`ExpiresAt` datetime DEFAULT NULL,
7070
`StatusName` varchar(50) NOT NULL,
7171
PRIMARY KEY (`Id`)
72-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
72+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
7373
7474
CREATE TABLE IF NOT EXISTS `{prefix}.published` (
7575
`Id` bigint NOT NULL,
@@ -81,7 +81,7 @@ PRIMARY KEY (`Id`)
8181
`ExpiresAt` datetime DEFAULT NULL,
8282
`StatusName` varchar(40) NOT NULL,
8383
PRIMARY KEY (`Id`)
84-
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
84+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
8585
";
8686
return batchSql;
8787
}

0 commit comments

Comments
 (0)