Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions db_schema/portal-db-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,18 @@ CREATE TABLE `cluster` (
`creator` VARCHAR(255) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE =InnoDB;

/**
* agent autoupdate table
*/
DROP TABLE IF EXISTS `agent_version`;
CREATE TABLE `agent_version` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`hostname` varchar(255) NOT NULL DEFAULT '',
`version` varchar(255) NOT NULL DEFAULT '',
`status` int(4) unsigned NOT NULL DEFAULT '0',
`current_version` varchar(255) NOT NULL DEFAULT '',
`update_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
UNIQUE KEY `idx_agent_hostname` (`hostname`)
) ENGINE=InnoDB;