Skip to content

Commit 11fb429

Browse files
committed
Going to have to redo v3.2 again
1 parent 9707e43 commit 11fb429

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

setup.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ function plugin_flowview_check_upgrade() {
112112
$good = db_fetch_row("SHOW INDEXES
113113
FROM `" . $t['TABLE_NAME'] . "`
114114
WHERE Key_name='keycol'
115-
AND Column_name='end_time';");
115+
AND Column_name='src_if';");
116116

117117
if (!cacti_sizeof($good)) {
118118
cacti_log('NOTE: Updating unique key for ' . $t['TABLE_NAME'], false, 'FLOWVIEW');
119119

120120
db_execute('ALTER TABLE ' . $t['TABLE_NAME'] . '
121121
DROP INDEX `keycol`,
122-
ADD UNIQUE INDEX `keycol` (`listener_id`,`src_addr`,`src_port`,`dst_addr`,`dst_port`, `start_time`, `end_time`)');
122+
ADD UNIQUE INDEX `keycol` (`listener_id`, `src_addr`, `src_port`, `src_if`,`dst_addr`,`dst_port`, `dst_if`, `start_time`, `end_time`)');
123123
}
124124
}
125125
}

0 commit comments

Comments
 (0)