Return-Path: Delivered-To: apmail-db-ddlutils-user-archive@www.apache.org Received: (qmail 19135 invoked from network); 10 Mar 2006 23:46:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Mar 2006 23:46:34 -0000 Received: (qmail 45178 invoked by uid 500); 10 Mar 2006 23:46:34 -0000 Delivered-To: apmail-db-ddlutils-user-archive@db.apache.org Received: (qmail 45156 invoked by uid 500); 10 Mar 2006 23:46:34 -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 45145 invoked by uid 99); 10 Mar 2006 23:46:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2006 15:46:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tomdzk@gmail.com designates 66.249.92.198 as permitted sender) Received: from [66.249.92.198] (HELO uproxy.gmail.com) (66.249.92.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2006 15:46:33 -0800 Received: by uproxy.gmail.com with SMTP id j40so406842ugd for ; Fri, 10 Mar 2006 15:46:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WNEnFC6nyzpfh45A34Z4/jvkkb3ZyQbjDSZNQBBaDjeoAtigrIBnsIwGJYhiHaZCDG3ZjtG/XOInOW8asIkG++GQZfoCPYDpp4wGqSxKZJQB36VP2B+udZGwHTqDattAcl8Fp4+rpkEjlATc8yVWrzTfdtyjCYn/tNDAlnXvhnU= Received: by 10.66.255.6 with SMTP id c6mr2275344ugi; Fri, 10 Mar 2006 15:46:12 -0800 (PST) Received: by 10.67.30.2 with HTTP; Fri, 10 Mar 2006 15:46:12 -0800 (PST) Message-ID: <224f32340603101546wf875f6cid6d1334fbfafd26e@mail.gmail.com> Date: Sat, 11 Mar 2006 00:46:12 +0100 From: "Thomas Dudziak" To: ddlutils-user@db.apache.org Subject: Re: DdlUtils example for Derby In-Reply-To: <44120D5C.7090008@bristowhill.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44120D5C.7090008@bristowhill.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 3/11/06, Jean T. Anderson wrote: > Every now and then there are posts to the derby-user list about how to > migrate databases to Derby, so I added a writeup to the Derby site on > how to use DdlUtils to migrate databases to Derby: > > http://db.apache.org/derby/integrate/db_ddlutils.html > > I'd appreciate any corrections or improvements you could suggest. Thanks Jean! I just saw it on the derby-user list, and it looks great. Just a few minor comments: * One important thing that you should note is that the model uses only JDBC datatypes. This is a 'limitation' which might bite a few people, espcially when the driver is old (and for instance reports OTHER instead of something useful) or the database has a somewhat different type concept (such as Oracle's NUMBER type). * Instead of using ";create=3Dtrue" you could use the createDatabase subtask (with failOnError=3Dfalse) which has the advantage that it hides the DB-specific details of creation. * The database name (when writing a schema to XML) is derived from the schema name in the db. If there is none (as for Derby), currently null is used (which is not written to XML). I'll fix that tomorrow :-) I'll plan on updating the website tomorrow (there have been a couple of changes). cheers, Tom