Return-Path: Delivered-To: apmail-db-ddlutils-user-archive@www.apache.org Received: (qmail 5440 invoked from network); 11 Apr 2008 18:30:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2008 18:30:13 -0000 Received: (qmail 31135 invoked by uid 500); 11 Apr 2008 18:30:13 -0000 Delivered-To: apmail-db-ddlutils-user-archive@db.apache.org Received: (qmail 31122 invoked by uid 500); 11 Apr 2008 18:30:13 -0000 Mailing-List: contact ddlutils-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ddlutils-user@db.apache.org Delivered-To: mailing list ddlutils-user@db.apache.org Received: (qmail 31111 invoked by uid 99); 11 Apr 2008 18:30:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 11:30:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [204.15.54.225] (HELO x1.tek-tools.com) (204.15.54.225) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 18:29:22 +0000 Received: from dal10006tt ([::ffff:209.194.31.18]) (SSL: TLSv1/SSLv3,128bits,RC4-MD5) by x1.tek-tools.com with esmtp; Fri, 11 Apr 2008 13:29:42 -0500 id 004601B8.47FFAE16.000043BE From: "Joe Porcheddu" To: ddlutils-user@db.apache.org Subject: Does DdlUtils support MySQL MyISAM? Date: Fri, 11 Apr 2008 13:31:00 -0500 Message-ID: <000901c89c02$31150d30$800101df@tektools.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcibJltKVhwDAeoRQS20vttBUEZFNAA28Egw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Virus-Checked: Checked by ClamAV on apache.org Hello, I have an existing table created in MySQL 4.1. The create table syntax is as follows: CREATE TABLE sometable ( deviceId INTEGER DEFAULT 0 NOT NULL, plexId INTEGER NOT NULL AUTO_INCREMENT, volumeId INTEGER, PRIMARY KEY (deviceId, plexId) ) ENGINE=MyISAM; When I export this table using DdlUtils, then try to import the schema to a new database, I get the following error: [ddlToDatabase] SQL Command CREATE TABLE sometable [ddlToDatabase] ( [ddlToDatabase] deviceId INTEGER DEFAULT 0 NOT NULL, [ddlToDatabase] plexId INTEGER NOT NULL AUTO_INCREMENT, [ddlToDatabase] volumeId INTEGER, [ddlToDatabase] PRIMARY KEY (deviceId, plexId) [ddlToDatabase] ) failed with: Incorrect table definition; there can be only one auto column and it must be defined as a key The create table syntax is failing because DdlUtils fails to append the "ENGINE=MyISAM" to the end of the CREAT TABLE statement. Is there a way to configure DdlUtils to do this? Thanks, Joe