Is there a way to create a db sql script to represent all the 'manual' relations i have in my llblgen project?

Posts   
 
    
gemfore
User
Posts: 35
Joined: 30-Jul-2010
# Posted on: 23-Dec-2010 11:56:05   

I have a database which doesnt contain any foreign keys or relations, but i have defined then in my llblgen project.

I'm looking to update the database to represent this setup and was wondering can llblgen generate these sql updates for me?

I know i can for table renames etc but what about manual relations?

Thanks

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 23-Dec-2010 15:10:59   

Which version are you using ?

Matt

gemfore
User
Posts: 35
Joined: 30-Jul-2010
# Posted on: 23-Dec-2010 16:01:24   

Its version 3 and bulid nov 15th

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 23-Dec-2010 22:29:12   
  • define the relationships in the entity model
  • click validate and adjust relational model data
  • export update ddl sql script. It contains the FK constraints (and UC constraints, PK constraints etc.) created from the relationships.

Please consult the manual for this, it contains a how-do-I section, which should get you started with this. (see the model first section in 'concepts' to get a good starting point).

Frans Bouma | Lead developer LLBLGen Pro