-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Ch_vtap_port support chost and pod_node
- Loading branch information
1 parent
0892c50
commit 28bd12c
Showing
9 changed files
with
100 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
server/controller/db/mysql/migration/rawsql/issu/6.6.1.6.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
DROP TABLE IF EXISTS ch_vtap_port; | ||
|
||
CREATE TABLE IF NOT EXISTS ch_vtap_port ( | ||
vtap_id INTEGER NOT NULL, | ||
tap_port BIGINT NOT NULL, | ||
name VARCHAR(256), | ||
mac_type INTEGER DEFAULT 1 COMMENT '1:tap_mac,2:mac', | ||
host_id INTEGER, | ||
host_name VARCHAR(256), | ||
chost_id INTEGER, | ||
chost_name VARCHAR(256), | ||
pod_node_id INTEGER, | ||
pod_node_name VARCHAR(256), | ||
device_type INTEGER, | ||
device_id INTEGER, | ||
device_name VARCHAR(256), | ||
icon_id INTEGER, | ||
team_id INTEGER, | ||
updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (vtap_id, tap_port) | ||
)ENGINE=innodb DEFAULT CHARSET=utf8; | ||
|
||
-- whether default db or not, update db_version to latest, remember update DB_VERSION_EXPECT in migrate/init.go | ||
UPDATE db_version SET version='6.6.1.6'; | ||
-- modify end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters