Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #2105 - database tables can't be created on MySQL >= 8.4 because KEY is not unique #291

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
10 changes: 5 additions & 5 deletions wwwroot/inc/install.php
Original file line number Diff line number Diff line change
Expand Up @@ -643,13 +643,13 @@ function get_pseudo_file ($name)
) ENGINE=InnoDB";

$query[] = "CREATE TABLE `IPv4LB` (
`object_id` int(10) unsigned default NULL,
`object_id` int(10) unsigned NOT NULL,
`rspool_id` int(10) unsigned default NULL,
`vs_id` int(10) unsigned default NULL,
`vs_id` int(10) unsigned NOT NULL,
`prio` varchar(255) default NULL,
`vsconfig` text,
`rsconfig` text,
UNIQUE KEY `LB-VS` (`object_id`,`vs_id`),
PRIMARY KEY (`object_id`,`vs_id`),
KEY `IPv4LB-FK-rspool_id` (`rspool_id`),
KEY `IPv4LB-FK-vs_id` (`vs_id`),
CONSTRAINT `IPv4LB-FK-vs_id` FOREIGN KEY (`vs_id`) REFERENCES `IPv4VS` (`id`),
Expand Down Expand Up @@ -994,7 +994,7 @@ function get_pseudo_file ($name)
`comment` text,
PRIMARY KEY (`id`),
UNIQUE KEY `asset_no` (`asset_no`),
KEY `id-tid` (`id`,`objtype_id`),
UNIQUE KEY `id-tid` (`id`,`objtype_id`),
KEY `type_id` (`objtype_id`,`id`)
) ENGINE=InnoDB";

Expand Down Expand Up @@ -1063,7 +1063,7 @@ function get_pseudo_file ($name)
PRIMARY KEY (`id`),
UNIQUE KEY `tag` (`tag`),
KEY `TagTree-K-parent_id` (`parent_id`),
KEY `id-is_assignable` (`id`,`is_assignable`),
UNIQUE KEY `id-is_assignable` (`id`,`is_assignable`),
CONSTRAINT `TagTree-K-parent_id` FOREIGN KEY (`parent_id`) REFERENCES `TagTree` (`id`)
) ENGINE=InnoDB";

Expand Down