Bug 95354 - SQL export from entity relationship diagrams
Summary: SQL export from entity relationship diagrams
Status: RESOLVED WORKSFORME
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-17 19:27 UTC by Jonathan Riddell
Modified: 2009-08-08 21:35 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
error umbrello 64 bits fedora core 4 (3.34 KB, text/plain)
2005-10-31 18:13 UTC, fer
Details
rails migration file example. (1.23 KB, application/octet-stream)
2006-06-16 07:55 UTC, Mathieu Jobin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Riddell 2004-12-17 19:27:07 UTC
Version:            (using KDE Devel)

Entity relationship diagrams should be able to export SQL.
Comment 1 Mathieu Jobin 2005-01-04 19:06:23 UTC
yes !

import too ;) from a SQL-DDL create tables and stuff

Comment 2 Sean Clarke 2005-04-01 22:27:54 UTC
This would be a fantastic addition.
Comment 3 fer 2005-10-31 18:13:42 UTC
Created attachment 13236 [details]
error umbrello 64 bits fedora core 4

error umbrello fedora core 4 64 bits
Comment 4 Conrad 2006-03-12 21:41:48 UTC
... export and import (at least from MySQL) would make this fantastic app even more useful ...
Comment 5 Mathieu Jobin 2006-03-13 00:25:05 UTC
having your project file in sync with a MySQL database would be even better.
Comment 6 Marco Rademacher 2006-04-03 17:53:53 UTC
I need this quite fast, but I've not much knowledge in programming. How is an export function written? Is there an example and a howto? If it's not too complicated, I would start writing a simple one. For me, even a text-export would be helpful.
Comment 7 Oliver Kellogg 2006-04-03 18:59:05 UTC
What should the generated code look like?
Please attach example diagrams and the corresponding intended SQL
at least for the most important use cases.
Comment 8 Mathieu Jobin 2006-06-16 07:55:45 UTC
Created attachment 16634 [details]
rails migration file example.

having my umbrello ERD in sync with anything would be really what I am whissing
for.

mysql database
sqlite database file (kexi)
.sql DDL text file
.rb ruby on rails migration file.

but as a first step, an export function would be really sweet.
I am posting this comment to add that I wish the export function could let me
choose between SQL or Rails migration code. as an attachment I will put a rails
database migration file. then activerecord generated the proper SQL for
whatever database backend I am using. note that the ID(autoincrement) is
automatic and must not be shown in the migration file.

thank you.
Comment 9 Matthias Kretz 2007-11-18 22:35:11 UTC
The patch I once had was very specific to my diagram and is lost now. :-(
Comment 10 FiNeX 2009-08-08 21:35:35 UTC
SQL Export from E-R diagram works on current trunk.