mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-19 17:48:36 +00:00
Added datetime column for disk_speed
Will be used for YABs history feature
This commit is contained in:
parent
725fde2298
commit
efe2bd72e0
2 changed files with 15 additions and 12 deletions
|
@ -26,6 +26,7 @@ CREATE TABLE IF NOT EXISTS `disk_speed`
|
||||||
`1m` float DEFAULT NULL,
|
`1m` float DEFAULT NULL,
|
||||||
`1m_type` char(4) DEFAULT NULL,
|
`1m_type` char(4) DEFAULT NULL,
|
||||||
`1m_as_mbps` float DEFAULT NULL,
|
`1m_as_mbps` float DEFAULT NULL,
|
||||||
|
`datetime` datetime DEFAULT CURRENT_TIMESTAMP,
|
||||||
PRIMARY KEY (`server_id`)
|
PRIMARY KEY (`server_id`)
|
||||||
) ENGINE = InnoDB
|
) ENGINE = InnoDB
|
||||||
DEFAULT CHARSET = latin1;
|
DEFAULT CHARSET = latin1;
|
||||||
|
|
2
update.sql
Normal file
2
update.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE `disk_speed`
|
||||||
|
ADD COLUMN `datetime` DATETIME NULL DEFAULT CURRENT_TIMESTAMP AFTER `1m_as_mbps`;
|
Loading…
Add table
Reference in a new issue