2021-01-21 04:31:56 +01:00
|
|
|
ALTER TABLE `disk_speed`
|
2021-01-22 01:16:31 +01:00
|
|
|
ADD COLUMN `datetime` DATETIME NULL DEFAULT CURRENT_TIMESTAMP AFTER `1m_as_mbps`;
|
|
|
|
|
|
|
|
ALTER TABLE `servers`
|
2021-01-24 02:44:51 +01:00
|
|
|
ADD COLUMN `ssh_port` INT(11) NULL DEFAULT '22' AFTER `os`;
|
|
|
|
|
|
|
|
ALTER TABLE `servers`
|
2021-01-24 04:37:06 +01:00
|
|
|
ADD COLUMN `notes` VARCHAR(255) NULL DEFAULT NULL AFTER `tags`;
|
|
|
|
|
|
|
|
ALTER TABLE `disk_speed`
|
|
|
|
DROP PRIMARY KEY;
|
|
|
|
|
|
|
|
ALTER TABLE `disk_speed`
|
2021-01-25 14:15:46 +01:00
|
|
|
ADD UNIQUE INDEX `Index 1` (`server_id`, `datetime`);
|
|
|
|
|
|
|
|
ALTER TABLE `servers`
|
|
|
|
ADD COLUMN `has_st` TINYINT(1) NULL DEFAULT '0' AFTER `has_yabs`;
|
|
|
|
|
|
|
|
UPDATE servers t1
|
|
|
|
JOIN
|
|
|
|
(
|
|
|
|
SELECT server_id
|
|
|
|
FROM speed_tests
|
|
|
|
GROUP BY server_id
|
|
|
|
HAVING COUNT(*) > 0
|
|
|
|
) t2
|
|
|
|
ON t1.id = t2.server_id
|
2021-01-29 01:20:47 +01:00
|
|
|
SET t1.has_st = 1;
|
|
|
|
|
|
|
|
ALTER TABLE `servers`
|
|
|
|
CHANGE COLUMN `bandwidth` `bandwidth` FLOAT NULL DEFAULT NULL AFTER `disk_type`;
|