diff --git a/my_idlers.sql b/my_idlers.sql index 5efe813..6b6c219 100644 --- a/my_idlers.sql +++ b/my_idlers.sql @@ -14,18 +14,19 @@ USE `idlers`; CREATE TABLE IF NOT EXISTS `disk_speed` ( `server_id` char(8) NOT NULL, - `4k` float DEFAULT NULL, - `4k_type` char(4) DEFAULT NULL, - `4k_as_mbps` float DEFAULT NULL, - `64k` float DEFAULT NULL, - `64k_type` char(4) DEFAULT NULL, - `64k_as_mbps` float DEFAULT NULL, - `512k` float DEFAULT NULL, - `512k_type` char(4) DEFAULT NULL, - `512k_as_mbps` float DEFAULT NULL, - `1m` float DEFAULT NULL, - `1m_type` char(4) DEFAULT NULL, - `1m_as_mbps` float DEFAULT NULL, + `4k` float DEFAULT NULL, + `4k_type` char(4) DEFAULT NULL, + `4k_as_mbps` float DEFAULT NULL, + `64k` float DEFAULT NULL, + `64k_type` char(4) DEFAULT NULL, + `64k_as_mbps` float DEFAULT NULL, + `512k` float DEFAULT NULL, + `512k_type` char(4) DEFAULT NULL, + `512k_as_mbps` float DEFAULT NULL, + `1m` float DEFAULT NULL, + `1m_type` char(4) DEFAULT NULL, + `1m_as_mbps` float DEFAULT NULL, + `datetime` datetime DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`server_id`) ) ENGINE = InnoDB DEFAULT CHARSET = latin1; diff --git a/update.sql b/update.sql new file mode 100644 index 0000000..1f2e341 --- /dev/null +++ b/update.sql @@ -0,0 +1,2 @@ +ALTER TABLE `disk_speed` + ADD COLUMN `datetime` DATETIME NULL DEFAULT CURRENT_TIMESTAMP AFTER `1m_as_mbps`; \ No newline at end of file