solocraft + dynamicxp

This commit is contained in:
mikx
2023-11-05 15:26:19 -05:00
commit 146bd781e2
3402 changed files with 2098316 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
ALTER TABLE `account`
CHANGE COLUMN `username` `username` VARCHAR(255) NOT NULL DEFAULT '' AFTER `id`,
CHANGE COLUMN `sha_pass_hash` `sha_pass_hash` VARCHAR(512) NOT NULL DEFAULT '' AFTER `username`,
CHANGE COLUMN `v` `v` VARCHAR(512) NOT NULL DEFAULT '' AFTER `sessionkey`,
CHANGE COLUMN `s` `s` VARCHAR(512) NOT NULL DEFAULT '' AFTER `v`,
ADD COLUMN `access_ip` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `last_ip`,
ADD COLUMN `email_blocked` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `failed_logins`,
ADD COLUMN `last_email` TIMESTAMP NULL DEFAULT NULL AFTER `last_login`,
CHANGE COLUMN `recruiter` `recruiter` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `os`,
ADD COLUMN `invite` VARCHAR(32) NOT NULL DEFAULT '' AFTER `recruiter`,
ADD COLUMN `lang` ENUM('tw','cn','en','ua','ru') NOT NULL DEFAULT 'en' AFTER `invite`,
ADD COLUMN `referer` VARCHAR(255) NOT NULL DEFAULT '' AFTER `lang`,
ADD COLUMN `unsubscribe` VARCHAR(32) NOT NULL DEFAULT '0' AFTER `referer`,
ADD COLUMN `dt_vote` TIMESTAMP NULL DEFAULT NULL AFTER `unsubscribe`,
ADD COLUMN `balans` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `hwid`,
ADD COLUMN `karma` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `balans`,
ADD COLUMN `activate` TINYINT(1) UNSIGNED NOT NULL DEFAULT '1' AFTER `karma`,
ADD COLUMN `verify` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `activate`,
ADD COLUMN `tested` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `verify`,
ADD COLUMN `donate` INT(10) UNSIGNED NOT NULL DEFAULT '0' AFTER `tested`,
ADD COLUMN `phone` VARCHAR(255) NOT NULL DEFAULT '' AFTER `donate`,
ADD COLUMN `phone_hash` VARCHAR(32) NOT NULL DEFAULT '' AFTER `phone`,
ADD COLUMN `telegram_lock` TINYINT(1) UNSIGNED NOT NULL DEFAULT '0' AFTER `phone_hash`,
ADD COLUMN `telegram_id` INT(11) UNSIGNED NOT NULL DEFAULT '0' AFTER `telegram_lock`,
DROP COLUMN `battlenet_account`,
DROP COLUMN `battlenet_index`,
DROP INDEX `bnet_acc`,
DROP INDEX `battlenet_account`,
DROP INDEX `battlenet_index`;
ALTER TABLE `account_rates`
DROP COLUMN `bnet_account`;
UPDATE account INNER JOIN battlenet_accounts ON account.username = battlenet_accounts.email SET account.sha_pass_hash = battlenet_accounts.sha_pass_hash;
DROP TABLE `battlenet_accounts`;
DROP TABLE `battlenet_account_bans`;

View File

@@ -0,0 +1,18 @@
DROP TABLE `store_statistics`;
DROP TABLE `store_history`;
CREATE TABLE `account_donate_token_log` (
`id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT,
`time` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
`accountId` INT(10) UNSIGNED NOT NULL,
`realmId` INT(10) UNSIGNED NOT NULL,
`characterId` BIGINT(20) UNSIGNED NOT NULL,
`change` INT(11) NOT NULL,
`type` TINYINT(3) UNSIGNED NOT NULL,
`productId` INT(10) UNSIGNED NOT NULL,
PRIMARY KEY (`id`)
)
COLLATE='latin1_swedish_ci';
ALTER TABLE `account`
CHANGE COLUMN `balans` `balans` INT(11) NOT NULL DEFAULT '0' AFTER `hwid`;

View File

@@ -0,0 +1,30 @@
ALTER TABLE `account_donate_token_log`
ADD COLUMN `tokenType` TINYINT(3) UNSIGNED NOT NULL AFTER `change`,
CHANGE COLUMN `change` `change` BIGINT(20) NOT NULL DEFAULT 0 AFTER `characterId`,
CHANGE COLUMN `type` `buyType` TINYINT(3) UNSIGNED NOT NULL AFTER `tokenType`;
-- set to default token type for existing log entries
UPDATE `account_donate_token_log` SET `tokenType` = 1;
CREATE TABLE `account_tokens` (
`account_id` INT(10) UNSIGNED NOT NULL,
`tokenType` TINYINT(3) UNSIGNED NOT NULL,
`amount` BIGINT(20) NOT NULL DEFAULT 0,
PRIMARY KEY (`account_id`, `tokenType`)
)
COLLATE='latin1_swedish_ci';
-- move battle coin balance from account table to account_tokens table
INSERT INTO account_tokens
SELECT id, 1, balans
FROM account
WHERE balans > 0;
-- add first_ip colum to account table
ALTER TABLE `account`
ADD COLUMN `first_ip` VARCHAR(15) NOT NULL DEFAULT '127.0.0.1' AFTER `joindate`,
DROP COLUMN `referer`;
-- add first_ip colum to account table
ALTER TABLE `account`
ADD COLUMN `referer` INT(10) UNSIGNED NOT NULL DEFAULT 0 AFTER `lang`;