不要怂,就是干,撸起袖子干!

You need to sign in or sign up before continuing.
Commit 9b34015a by Jack

Added id field to foreign key result

1 parent e306d32c
Showing with 1 additions and 0 deletions
......@@ -124,6 +124,7 @@ module.exports = (function() {
rows.forEach(function(row) {
var defParts;
if (row.condef !== undefined && (defParts = row.condef.match(/FOREIGN KEY \((.+){1}\) REFERENCES (.+){1}\((.+){1}\)/))) {
row.id = row.constraint_name;
row.table = defParts[2];
row.from = defParts[1];
row.to = defParts[3];
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!