Skip to content

Commit 784503a

Browse files
authored
Update README.md
1 parent 5d3af3d commit 784503a

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

README.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,8 @@ php bin/magento setup:di:compile
2828
php bin/magento setup:static-content:deploy -f
2929
```
3030

31-
For use emoticons from tinymce5Adapter need run in db:
32-
```
33-
ALTER TABLE magefan_blog_post CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
34-
ALTER TABLE magefan_blog_category CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
35-
ALTER TABLE magefan_blog_tag CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
36-
37-
ALTER TABLE catalog_product_entity_varchar CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
38-
ALTER TABLE catalog_product_entity_text CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
39-
ALTER TABLE catalog_category_entity_varchar CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
40-
ALTER TABLE catalog_category_entity_text CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
41-
```
42-
Also need change from utf8 to utf8mb4 in in app/etc/env.php
31+
## Enabling emoji 😋
32+
1. Change "utf8" to "utf8mb4" for initStatements in app/etc/env.php file. Example:
4333
```
4434
'db' => [
4535
'table_prefix' => '',
@@ -53,6 +43,23 @@ Also need change from utf8 to utf8mb4 in in app/etc/env.php
5343
],
5444
```
5545

46+
2. Alter database tables and set utf8mb4 encoding. Run SQL queries:
47+
```
48+
# For blog posts
49+
ALTER TABLE magefan_blog_post CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
50+
# For blog categories
51+
ALTER TABLE magefan_blog_category CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
52+
# For blog tags
53+
ALTER TABLE magefan_blog_tag CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
54+
# For products
55+
ALTER TABLE catalog_product_entity_varchar CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
56+
ALTER TABLE catalog_product_entity_text CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
57+
# For categories
58+
ALTER TABLE catalog_category_entity_varchar CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
59+
ALTER TABLE catalog_category_entity_text CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
60+
```
61+
62+
5663
## [Magento 2 Extensions](https://magefan.com/magento-2-extensions) by Magefan
5764
### [Magento 2 Admin Panel Extensions](https://magefan.com/magento-2-extensions/admin-extensions)
5865
* [Magento 2 Automatic Related Products](https://magefan.com/magento-2-automatic-related-products)

0 commit comments

Comments
 (0)