mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Add ['type'] back to $field['key']['type'] as its used in many app_config.php files.
This commit is contained in:
@@ -72,10 +72,10 @@ include "root.php";
|
|||||||
else {
|
else {
|
||||||
$sql .= $field['type'];
|
$sql .= $field['type'];
|
||||||
}
|
}
|
||||||
if ($field['key'] == "primary") {
|
if ($field['key']['type'] == "primary") {
|
||||||
$sql .= " PRIMARY KEY";
|
$sql .= " PRIMARY KEY";
|
||||||
}
|
}
|
||||||
if ($field['key'] == "foreign") {
|
if ($field['key']['type'] == "foreign") {
|
||||||
if ($this->db_type == "pgsql") {
|
if ($this->db_type == "pgsql") {
|
||||||
//$sql .= " references ".$field['key']['reference']['table']."(".$field['key']['reference']['field'].")";
|
//$sql .= " references ".$field['key']['reference']['table']."(".$field['key']['reference']['field'].")";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ function db_create_table ($apps, $db_type, $table) {
|
|||||||
else {
|
else {
|
||||||
$sql .= $field['type'];
|
$sql .= $field['type'];
|
||||||
}
|
}
|
||||||
if ($field['key'] == "primary") {
|
if ($field['key']['type'] == "primary") {
|
||||||
$sql .= " PRIMARY KEY";
|
$sql .= " PRIMARY KEY";
|
||||||
}
|
}
|
||||||
$field_count++;
|
$field_count++;
|
||||||
|
|||||||
Reference in New Issue
Block a user