Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract columns to existing table with different primary key column than 'id'? #60

Open
shah opened this issue Jan 1, 2020 · 0 comments

Comments

@shah
Copy link

shah commented Jan 1, 2020

I'm trying to extract columns using --extract-columns "src_col:dest_table:dest_value_col" but in my dest_table the ID is not 'id' but "tablename_id". What's the best way to get around this issue? I noticed this in the CLI code but wasn't sure about the best way to change it to allow a different '(id)':

FOREIGN KEY ("{}") REFERENCES [{}](id)'.format(column, table)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant