From MySql Workbench diagram to CFW migrations plugin #1277
blastiko
started this conversation in
Show and tell
Replies: 2 comments
-
|
This is great. Will have to give it a run when I get back into the office.-Peter Amiri Sent from my iPhone (auto-typing mispell disclaimer in effect)On Sep 2, 2023, at 8:42 AM, blastiko ***@***.***> wrote:
Hi guys
Attach to this post you find a Mysql Workbench script that create all the initial migrations files from a MSW diagram.
From MSW diagram, it create one file per table, with all the fields, reference (with referential integrity) and (optionally) the timestamps fields.
It set olso the index and unique flag on fields (if necessary).
This script require the inflect.py library for pluralizes/singularizes tables name (see instructions on head of script).
This code is free/open source and not complete nor fully tested: feel free to modify it, increase it or fix any bugs.
I hope it is useful.
mwdtcm.py.zip
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
New version 0.2.1 of the script. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys
Attach to this post you find a Mysql Workbench script that create all the initial migrations files from a MSW diagram.
From MSW diagram, it create one file per table, with all the fields, reference (with referential integrity) and (optionally) the timestamps fields.
It set olso the index and unique flag on fields (if necessary).
This script require the inflect.py library for pluralizes/singularizes tables name (see instructions on head of script).
This code is free/open source and not complete nor fully tested: feel free to modify it, increase it or fix any bugs.
I hope it is useful.
mwdtcm.py.zip
Beta Was this translation helpful? Give feedback.
All reactions