Book a Demo

Author Topic: Issues with MySQL code generation  (Read 8166 times)

yorweb

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Issues with MySQL code generation
« on: August 30, 2006, 07:45:47 am »
I am just coming to the end of the 30 day trial period of EA (I'm using the professional version) and I'm 50/50 whether to purchase or not. I am looking for a single tool to design databases that utilise the MySQL engine  and while EA has a number of advantages, other aspects I find a bit disappointing.

1. After drawing an ERD with all the Foreign Keys, it does not then specify the tables should InnoDB.

2. There's no way to specify the length of integers. Unfortunately I am a right awkward bugger because I like to work at int(10).

3. Also with integers, I have found no way of specifying them as unsigned.

OK I can then do the above manually but I know that anyhow and surely really defeats the purpose of having software like your's in the first place.

Cheers

Tim


thomaskilian

  • Guest
Re: Issues with MySQL code generation
« Reply #1 on: August 30, 2006, 01:42:00 pm »
1. You need to define a Tag "Type" with value "InnoDB" for the table
Not sure about the rest. Sparx?

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: Issues with MySQL code generation
« Reply #2 on: August 30, 2006, 03:17:40 pm »
Quote
2. There's no way to specify the length of integers. Unfortunately I am a right awkward bugger because I like to work at int(10).

Add a new MySQL datatype...

INT - and give it length 10.

Quote
3. Also with integers, I have found no way of specifying them as unsigned.

Add a new MySQL datatype...

UNSIGNED INTEGER

You can do this from Settings | Database Datatypes...

HTH...

Henk

yorweb

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Issues with MySQL code generation
« Reply #3 on: August 30, 2006, 04:41:04 pm »
Quote
1. You need to define a Tag "Type" with value "InnoDB" for the table
Not sure about the rest. Sparx?

Oh.. like it. Do you have to set this tag for each table or can you set it once and just call it?

Cheers

Tim
« Last Edit: August 30, 2006, 04:46:33 pm by yorweb »

yorweb

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Issues with MySQL code generation
« Reply #4 on: August 30, 2006, 04:42:40 pm »
Quote
Add a new MySQL datatype...

INT - and give it length 10.

Add a new MySQL datatype...

UNSIGNED INTEGER

You can do this from Settings | Database Datatypes...

HTH...

Henk

Ah.. yes excellent, just what I needed.  Are these settings inbuilt or can they be imported and exported? For example if 3 people were working on the same project specs.

Cheers

Tim
« Last Edit: August 30, 2006, 04:43:40 pm by yorweb »

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: Issues with MySQL code generation
« Reply #5 on: August 30, 2006, 05:13:40 pm »
You can export/import datatypes as follows...

Tools | Export Reference Data...

and select "Model Data Types - Code and DDL".

yorweb

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
  • I love YaBB 1G - SP1!
    • View Profile
Re: Issues with MySQL code generation
« Reply #6 on: August 30, 2006, 06:41:33 pm »
Quote
Add a new MySQL datatype...

UNSIGNED INTEGER

You can do this from Settings | Database Datatypes...

HTH...

Henk

Just a note but I think you have to specify the data type first before what attributes it has.

I simply added the type: INT(10) UNSIGNED

However many thanks for your assistence. Think I might just buy it.  ;D

Cheers

Tim

thomaskilian

  • Guest
Re: Issues with MySQL code generation
« Reply #7 on: September 04, 2006, 02:34:44 am »
Quote
Oh.. like it. Do you have to set this tag for each table or can you set it once and just call it?

Cheers
 
Tim

I create my tables with a transformation. So I put it right in the template. I don't know of any other way to default this Tag for table creations.