Book a Demo

Author Topic: DDL script for MySQL does not work  (Read 2583 times)

AndreasBuschka

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
DDL script for MySQL does not work
« on: July 25, 2003, 02:48:36 pm »
Hello!

The DDL script generated from the EA diagramm (current build) does not work with the mySQL 4.x server:

1. For foreign keys, Create Table needs to specify the InnoDB table type:

CREATE TABLE CUSTOMER (A INT, B CHAR (20), INDEX (A)) TYPE = InnoDB;

(TYPE = InnoDB is missing in the EA output)

2. The Syntax for defining foreign keys is wrong:

Wrong:
ALTER TABLE abonnements
     ADD CONSTRAINT PRIMARY
     PRIMARY KEY (ABONNEMENT_ID)
;

Right:
ALTER TABLE abonnements
     ADD
     PRIMARY KEY (ABONNEMENT_ID)
;

Is there any way to work around this?