Add ['type'] back to $field['key']['type'] as its used in many app_config.php files.

This commit is contained in:
Mark Crane
2013-09-10 21:30:17 +00:00
parent 9cc32caff6
commit 35da60e22f
2 changed files with 3 additions and 3 deletions

View File

@@ -188,7 +188,7 @@ function db_create_table ($apps, $db_type, $table) {
else {
$sql .= $field['type'];
}
if ($field['key'] == "primary") {
if ($field['key']['type'] == "primary") {
$sql .= " PRIMARY KEY";
}
$field_count++;