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

how add auto-increment primary key? #7

Open
leandersonandre opened this issue Jul 12, 2017 · 4 comments
Open

how add auto-increment primary key? #7

leandersonandre opened this issue Jul 12, 2017 · 4 comments

Comments

@leandersonandre
Copy link

No description provided.

@niklauslee
Copy link
Owner

It's not supported yet

@l932
Copy link

l932 commented Feb 23, 2018

I did it like this:
line += " " + _type; if (elem.primaryKey) { line += " NOT NULL AUTO_INCREMENT"; }else{ if(!elem.nullable){ line += " NOT NULL"; } }

@finevine
Copy link

finevine commented Nov 6, 2019

@l932 Where have you added this ?

@Errol28Rose
Copy link

Errol28Rose commented Oct 6, 2021

I jus add the AUTO_INCREMENT right after the data type and that's it

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

5 participants