Skip to content

Commit c524de2

Browse files
authored
Update update.php
1 parent c43dfe2 commit c524de2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

install/update.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@
109109
"ALTER TABLE `pays` ADD `tron_price` DOUBLE(255,2) NOT NULL DEFAULT '0' AFTER `price`;",
110110
"ALTER TABLE `gift_list` CHANGE `id` `id` INT(255) NOT NULL AUTO_INCREMENT;",
111111
"ALTER TABLE `users` CHANGE `discount_percent` `discount_percent` VARCHAR(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL;",
112-
"UPDATE `users` SET discount_percent = IF(discount_percent = 0, NULL, CONCAT('{\"normal\": ', discount_percent, '}')) WHERE discount_percent REGEXP '^[0-9]+$';"
112+
"UPDATE `users` SET discount_percent = IF(discount_percent = 0, NULL, CONCAT('{\"normal\": ', discount_percent, '}')) WHERE discount_percent REGEXP '^[0-9]+$';",
113+
"CREATE TABLE `black_list` (
114+
`id` int(255) NOT NULL AUTO_INCREMENT,
115+
`info` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin,
116+
PRIMARY KEY (`id`)
117+
);"
113118
];
114119
function updateBot(){
115120
global $arrays, $connection, $walletwizwiz, $nowPaymentKey, $zarinpalId;

0 commit comments

Comments
 (0)