2018-10-01 18:46:07 +00:00
|
|
|
/*
|
2018-10-01 21:45:53 +00:00
|
|
|
The execution of this entire file is necessary, if you neglect to do so I will not provide support for you.
|
2018-10-01 18:46:07 +00:00
|
|
|
*/
|
2017-03-20 02:21:03 +00:00
|
|
|
SET SQL_SAFE_UPDATES=0;
|
2017-03-20 01:53:54 +00:00
|
|
|
UPDATE (player) SET name = REPLACE(name, '"', '');
|
|
|
|
UPDATE (clan) SET name = REPLACE(name, '"', '');
|
|
|
|
UPDATE (account) SET name = REPLACE(name, '"', '');
|
|
|
|
UPDATE (clan_map_marker) SET label = REPLACE(label, '"', '');
|
|
|
|
UPDATE (territory) SET name = REPLACE(name, '"', '');
|
2017-03-23 02:30:29 +00:00
|
|
|
ALTER TABLE `player` CHANGE COLUMN `hitpoints` `hitpoints` VARCHAR(1024) NOT NULL DEFAULT '[]' ;
|
2017-05-11 20:04:59 +00:00
|
|
|
ALTER TABLE `player` DROP PRIMARY KEY, ADD PRIMARY KEY (`id`, `account_uid`);
|
2018-10-01 21:45:53 +00:00
|
|
|
ALTER TABLE `player` CHANGE COLUMN `assigned_items` `assigned_items` TEXT CHARACTER SET 'utf8' NULL DEFAULT '[]' ;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `vehicle`
|
2018-03-09 20:52:01 +00:00
|
|
|
CHANGE COLUMN `hitpoints` `hitpoints` TEXT NULL ,
|
|
|
|
CHANGE COLUMN `cargo_items` `cargo_items` TEXT NULL ,
|
|
|
|
CHANGE COLUMN `cargo_magazines` `cargo_magazines` TEXT NULL ,
|
|
|
|
CHANGE COLUMN `cargo_weapons` `cargo_weapons` TEXT NULL ,
|
|
|
|
CHANGE COLUMN `cargo_container` `cargo_container` TEXT NULL ,
|
|
|
|
CHANGE COLUMN `vehicle_texture` `vehicle_texture` TEXT NULL ;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `account`
|
2018-03-09 20:52:01 +00:00
|
|
|
CHANGE COLUMN `score` `score` INT(50) NOT NULL DEFAULT '0' ,
|
|
|
|
CHANGE COLUMN `locker` `locker` INT(50) NOT NULL DEFAULT '0' ;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `player`
|
2018-03-09 20:52:01 +00:00
|
|
|
CHANGE COLUMN `money` `money` INT(50) UNSIGNED NOT NULL DEFAULT '0' ;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `container`
|
2018-03-14 17:25:35 +00:00
|
|
|
DROP FOREIGN KEY `container_ibfk_2`;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `container`
|
2018-03-14 17:25:35 +00:00
|
|
|
DROP INDEX `territory_id` ;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `construction`
|
2018-03-14 17:25:35 +00:00
|
|
|
DROP FOREIGN KEY `construction_ibfk_2`;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `construction`
|
2018-03-14 17:25:35 +00:00
|
|
|
DROP INDEX `territory_id` ;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `territory`
|
2018-03-14 17:25:35 +00:00
|
|
|
DROP FOREIGN KEY `territory_ibfk_2`;
|
2018-10-01 18:46:07 +00:00
|
|
|
ALTER TABLE `territory`
|
2018-03-14 17:25:35 +00:00
|
|
|
DROP INDEX `flag_stolen_by_uid` ;
|
|
|
|
ALTER TABLE `vehicle` DROP FOREIGN KEY `vehicle_ibfk_2`;
|
|
|
|
ALTER TABLE `vehicle` DROP INDEX `vehicle_ibfk_2_idx` ;
|