plantuml2mysql
plantuml2mysql copied to clipboard
Primary Key
Firstly thank you for this code. Helped a lot. There is an issue here, the code generates the Primary key code even if I have not defined any in the UML using '#' I am working to resolve this issue, not sure if already resolved.
Thank you for the report! PR will be welcomed.
Hell Grafov, Hope you doing well. I did some analysis and could find a solution. Please check the following code. What I have also done is that code will now also put a 'GO' after each creates table statement ends. Let me push my code as well
if field and l == "}": table = False; field = False if primary: #Vijvipin print(" PRIMARY KEY (%s)" % ", ".join(primary), end="") if index: print(",\n%s" % index[:-2],) index = "" print(");\n") print("GO\n") #Vijvipin continue
Hello Grefov, I have created a new pull request with the changes to solve the above issue.
Ok, I have left comments in the review.