staruml-ddl icon indicating copy to clipboard operation
staruml-ddl copied to clipboard

how add auto-increment primary key?

Open leandersonandre opened this issue 7 years ago • 4 comments

leandersonandre avatar Jul 12 '17 13:07 leandersonandre

It's not supported yet

niklauslee avatar Jul 13 '17 03:07 niklauslee

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

l932 avatar Feb 23 '18 04:02 l932

@l932 Where have you added this ?

finevine avatar Nov 06 '19 09:11 finevine

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

Errol28Rose avatar Oct 06 '21 17:10 Errol28Rose