mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 03:33:49 +00:00
Fix the primary key on the dev branch.
This commit is contained in:
@@ -72,10 +72,10 @@ include "root.php";
|
||||
else {
|
||||
$sql .= $field['type'];
|
||||
}
|
||||
if ($field['key']['type'] == "primary") {
|
||||
if ($field['key'] == "primary") {
|
||||
$sql .= " PRIMARY KEY";
|
||||
}
|
||||
if ($field['key']['type'] == "foreign") {
|
||||
if ($field['key'] == "foreign") {
|
||||
if ($this->db_type == "pgsql") {
|
||||
//$sql .= " references ".$field['key']['reference']['table']."(".$field['key']['reference']['field'].")";
|
||||
}
|
||||
|
||||
@@ -188,6 +188,9 @@ function db_create_table ($apps, $db_type, $table) {
|
||||
else {
|
||||
$sql .= $field['type'];
|
||||
}
|
||||
if ($field['key'] == "primary") {
|
||||
$sql .= " PRIMARY KEY";
|
||||
}
|
||||
$field_count++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user