Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Changed the "FOREIGN KEY" statement for non-primary keys in PDO_Forge #1778

Closed
wants to merge 1 commit into from

2 participants

@berklee

Line 125 of pdo_forge.php: When creating non-primary keys using the PDO driver, it defaults to issuing "FOREIGN KEY" instead of "KEY". Changed "FOREIGN KEY" back to "KEY" and it works again.

@berklee berklee Changed the "FOREIGN KEY" statement for non-primary keys in PDO_Forge
When creating non-primary keys using the PDO driver, it defaults to issuing "FOREIGN KEY" instead of "KEY". Changed "FOREIGN KEY" back to "KEY" and it works again.
841a8e5
@narfbg
Owner

Already done that.

@narfbg narfbg closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 7, 2012
  1. @berklee

    Changed the "FOREIGN KEY" statement for non-primary keys in PDO_Forge

    berklee authored
    When creating non-primary keys using the PDO driver, it defaults to issuing "FOREIGN KEY" instead of "KEY". Changed "FOREIGN KEY" back to "KEY" and it works again.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  system/database/drivers/pdo/pdo_forge.php
View
2  system/database/drivers/pdo/pdo_forge.php
@@ -122,7 +122,7 @@ protected function _create_table($table, $fields, $primary_keys, $keys, $if_not_
? $this->db->escape_identifiers($key)
: array($this->db->escape_identifiers($key));
- $sql .= ",\n\tFOREIGN KEY (".implode(', ', $key).')';
+ $sql .= ",\n\tKEY (".implode(', ', $key).')';
}
}
Something went wrong with that request. Please try again.