mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-12-25 06:00:28 +01:00
bugfix inverted UNIQUE parameter in db_schema and mustal
This commit is contained in:
parent
d97f41e293
commit
85094921a0
File diff suppressed because it is too large
Load Diff
8
vendor/mustal/mustal_mysql_upgrade_tool.php
vendored
8
vendor/mustal/mustal_mysql_upgrade_tool.php
vendored
@ -140,8 +140,14 @@ function mustal_load_tables_from_db(string $host, string $schema, string $user,
|
||||
$composed_key = array();
|
||||
$composed_key['Key_name'] = $key['Key_name'];
|
||||
$composed_key['Index_type'] = $key['Index_type'];
|
||||
$composed_key['Non_unique'] = ($key['Non_unique'] == 1)?'UNIQUE':'';
|
||||
$composed_key['columns'][] = $key['Column_name'];
|
||||
|
||||
if ($key['Key_name'] != 'PRIMARY') {
|
||||
$composed_key['Non_unique'] = ($key['Non_unique'] == 1)?'':'UNIQUE';
|
||||
} else {
|
||||
$composed_key['Non_unique'] = '';
|
||||
}
|
||||
|
||||
$composed_keys[] = $composed_key;
|
||||
} else {
|
||||
// Given key, add column
|
||||
|
Loading…
Reference in New Issue
Block a user