Return-Path: Delivered-To: apmail-jakarta-jetspeed-dev-archive@www.apache.org Received: (qmail 14793 invoked from network); 9 Dec 2004 11:41:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 11:41:54 -0000 Received: (qmail 24947 invoked by uid 500); 9 Dec 2004 11:41:50 -0000 Delivered-To: apmail-jakarta-jetspeed-dev-archive@jakarta.apache.org Received: (qmail 24913 invoked by uid 500); 9 Dec 2004 11:41:50 -0000 Mailing-List: contact jetspeed-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jetspeed Developers List" Reply-To: "Jetspeed Developers List" Delivered-To: mailing list jetspeed-dev@jakarta.apache.org Received: (qmail 24900 invoked by uid 99); 9 Dec 2004 11:41:50 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from ztown1-5-30.adsl.one.net (HELO mx.scriptall.com) (216.23.125.30) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 09 Dec 2004 03:41:48 -0800 Received: (qmail 8504 invoked by uid 512); 9 Dec 2004 06:41:47 -0500 Received: from david@bluesunrise.com by edison by uid 509 with qmail-scanner-1.22-st-qms (clamdscan: 0.75. spamassassin: 2.63. Clear:RC:0(143.41.8.10):SA:0(-4.9/5.0):. Processed in 5.107483 secs); 09 Dec 2004 11:41:47 -0000 X-Spam-Status: No, hits=-4.9 required=5.0 X-Antivirus-MYDOMAIN-Mail-From: david@bluesunrise.com via edison X-Antivirus-MYDOMAIN: 1.22-st-qms (Clear:RC:0(143.41.8.10):SA:0(-4.9/5.0):. Processed in 5.107483 secs Process 8471) Received: from garfunkel3.which.co.uk (HELO ?143.41.134.128?) (david@bluesunrise.com@143.41.8.10) by mx.scriptall.com with SMTP; 9 Dec 2004 06:41:42 -0500 Message-ID: <41B839EC.3090102@bluesunrise.com> Date: Thu, 09 Dec 2004 11:41:32 +0000 From: David Sean Taylor User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jetspeed Developers List Subject: Re: [J2] Vote: Torque schema generation problems - how to proceed? References: <41B7B411.3080401@douma.nu> <41B7B469.2020903@douma.nu> In-Reply-To: <41B7B469.2020903@douma.nu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Ate Douma wrote: > Ate Douma wrote: > >> So, I'd like to call a vote on the following proposals: >> - maintain our own torque-sql scripts: > > [X] > >> - provide our own data xml to sql (torque based) scripts: > > [X] > >> - (re)write our own database config engine based on torque allowing >> runtime schema/data installation/upgrade: > > [X] > I think we should take up Henning's offer and try to get the scripts working with the help of the Torque team. Just to recap, here are some of the issues Im aware of are: 1. FK dependency order. The scripts need to be generated in an order such that FK dependencies are resolved and that the dependent tables are deleted before the referenced tables, and the referenced tables are created before the referencing tables. The way Torque currently generates scripts, this seems to be a catch-22: if TABLE exists drop it create table One solution is to do the drops and creates in two separate scripts 2. The Oracle scripts do not generate "IF TABLE EXISTS DROP" requiring a special case for Oracle. 3. We require hand-coded data population scripts specific to each database that vary slightly. AFAIK, Torque only deals with DDL and not data manipulation i.e. INSERT statements. --------------------------------------------------------------------- To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org