Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Allow to specify the name of Primary Key #44

Open
Takeno opened this issue Feb 16, 2018 · 1 comment
Open

Allow to specify the name of Primary Key #44

Takeno opened this issue Feb 16, 2018 · 1 comment

Comments

@Takeno
Copy link

Takeno commented Feb 16, 2018

I've a database schema (MySQL in my case) which has no key named id but it uses idcustomer as primary key. In this way, node-sql-fixtures can't work.

 ER_BAD_FIELD_ERROR: Unknown column 'id' in 'where clause'

It should be nice to have the option to specify the primary key of table to avoid error.

@city41
Copy link
Owner

city41 commented Feb 17, 2018

I agree sql-fixtures should support this. But to be honest I'm not sure when I'd ever get time to implement it. I do welcome pull requests.

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

No branches or pull requests

2 participants