Skip to content

Commit 5776364

Browse files
Fix core database character set with special character
1 parent 28c5949 commit 5776364

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

addons/sourcemod/scripting/store.sp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#define PLUGIN_NAME "Store - The Resurrection with preview rewritten compilable with SM 1.10 new syntax"
66
#define PLUGIN_AUTHOR "Zephyrus, nuclear silo, AiDN™"
77
#define PLUGIN_DESCRIPTION "A completely new Store system with preview rewritten by nuclear silo"
8-
#define PLUGIN_VERSION "7.0.3"
8+
#define PLUGIN_VERSION "7.0.4"
99
#define PLUGIN_URL ""
1010

1111
#define SERVER_LOCK_IP ""
@@ -3331,8 +3331,8 @@ public void SQLCallback_Connect(Handle owner, Handle hndl, const char[] error, a
33313331
// Edit exist date column
33323332
SQL_TQuery(g_hDatabase, SQLCallback_CheckError, "ALTER TABLE store_logs MODIFY COLUMN date TIMESTAMP NOT NULL");
33333333

3334-
SQL_TQuery(g_hDatabase, SQLCallback_CheckError, "ALTER TABLE `store_players` CHANGE COLUMN `name` `name` VARCHAR(64) CHARACTER SET 'utf8' NOT NULL");
3335-
SQL_TQuery(g_hDatabase, SQLCallback_CheckError, "ALTER TABLE `store_plugin_logs` CHANGE COLUMN `name` `name` VARCHAR(64) CHARACTER SET 'utf8' NOT NULL");
3334+
SQL_TQuery(g_hDatabase, SQLCallback_CheckError, "ALTER TABLE store_players CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;");
3335+
SQL_TQuery(g_hDatabase, SQLCallback_CheckError, "ALTER TABLE store_plugin_logs CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;");
33363336
char m_szQuery[512];
33373337
Format(STRING(m_szQuery), "CREATE TABLE IF NOT EXISTS `%s` (\
33383338
`id` int(11) NOT NULL AUTO_INCREMENT,\

changelog.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,16 @@
88
================================================================================================================================
99

1010
##########
11-
Update 8/5/2022 : Fix sprays item can be used for free (issue [#92](https://github.com/nuclearsilo583/zephyrus-store-preview-new-syntax/issues/92))
11+
Update 6/8/2022
12+
- Fix grenade model crash
13+
- Fix core database character set with special character (thanks to 1MaaaaaacK)
14+
##########
15+
Files changes:
16+
- store.sp
17+
- store_item_grenskins.sp
18+
19+
##########
20+
Update 5/8/2022 : Fix sprays item can be used for free (issue [#92](https://github.com/nuclearsilo583/zephyrus-store-preview-new-syntax/issues/92))
1221
##########
1322
Files changes:
1423
- store_item_sprays.sp

0 commit comments

Comments
 (0)