Skip to content
Merged
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
17 changes: 12 additions & 5 deletions includes/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ function intropage_upgrade_database(): void {
db_execute("UPDATE plugin_intropage_panel_definition SET panel_id='ntp_dns', name='NTP/DNS check' WHERE panel_id='ntp'");
db_execute("UPDATE plugin_intropage_panel_data SET panel_id='ntp_dns' WHERE panel_id='ntp'");
db_execute("UPDATE plugin_intropage_user_auth set permissions=REPLACE(permissions,'ntp','ntp_dns')");
db_execute('ALTER TABLE plugin_intropage_dashboard ADD COLUMN shared INT(1) NOT NULL default "0"');
if (!db_column_exists('plugin_intropage_dashboard', 'shared')) {
db_execute('ALTER TABLE plugin_intropage_dashboard ADD COLUMN shared INT(1) NOT NULL default "0"');
}
db_execute('DELETE FROM plugin_hooks WHERE FUNCTION = "intropage_config_form" AND name="intropage"');
}

Expand Down Expand Up @@ -420,10 +422,15 @@ function intropage_upgrade_database(): void {
}

if (cacti_version_compare($oldv, '4.0.5', '<=')) {
db_execute('ALTER TABLE plugin_intropage_panel_definition
ADD COLUMN `height` enum("normal","double","triple") NOT NULL DEFAULT "normal"');
db_execute('ALTER TABLE plugin_intropage_panel_data
ADD COLUMN `height` enum("normal","double","triple") NOT NULL DEFAULT "normal"');
if (!db_column_exists('plugin_intropage_panel_definition', 'height')) {
db_execute('ALTER TABLE plugin_intropage_panel_definition
ADD COLUMN `height` enum("normal","double","triple") NOT NULL DEFAULT "normal"');
}

if (!db_column_exists('plugin_intropage_panel_data', 'height')) {
db_execute('ALTER TABLE plugin_intropage_panel_data
ADD COLUMN `height` enum("normal","double","triple") NOT NULL DEFAULT "normal"');
}
}

if (cacti_version_compare($oldv, '4.1.0', '<')) {
Expand Down
Loading