From server-dev-return-38727-apmail-james-server-dev-archive=james.apache.org@james.apache.org Thu Jul 29 14:36:43 2010 Return-Path: Delivered-To: apmail-james-server-dev-archive@www.apache.org Received: (qmail 74782 invoked from network); 29 Jul 2010 14:36:43 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 29 Jul 2010 14:36:43 -0000 Received: (qmail 24264 invoked by uid 500); 29 Jul 2010 14:36:42 -0000 Delivered-To: apmail-james-server-dev-archive@james.apache.org Received: (qmail 24118 invoked by uid 500); 29 Jul 2010 14:36:41 -0000 Mailing-List: contact server-dev-help@james.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "James Developers List" Reply-To: "James Developers List" Delivered-To: mailing list server-dev@james.apache.org Received: (qmail 24104 invoked by uid 99); 29 Jul 2010 14:36:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 14:36:40 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jul 2010 14:36:39 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o6TEaJqs015211 for ; Thu, 29 Jul 2010 14:36:19 GMT Message-ID: <23599083.68101280414179534.JavaMail.jira@thor> Date: Thu, 29 Jul 2010 10:36:19 -0400 (EDT) From: "Eric Charles (JIRA)" To: server-dev@james.apache.org Subject: [jira] Updated: (IMAP-181) Implement database schema and data incremental migration for 3.0 release In-Reply-To: <5416070.542361279890770925.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IMAP-181?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Eric Charles updated IMAP-181: ------------------------------ Attachment: jpa-migrator-2.zip jpa-migrator-2.zip for review as candidate for new mvn project "jpa-migrator" under current imap directory (in // to jpa mvn project). Functional as such (tested on real data) for 5 jiras. Uses much native SQL (don't see any other solution) Enhancements will be needed: - Extract the SQL in JAVA classes to XML file. - Log with log4j. Waiting for a "go" to commit in trunk. > Implement database schema and data incremental migration for 3.0 release > ------------------------------------------------------------------------ > > Key: IMAP-181 > URL: https://issues.apache.org/jira/browse/IMAP-181 > Project: JAMES Imap > Issue Type: New Feature > Components: JPA Mailbox > Environment: all > Reporter: Eric Charles > Assignee: Eric Charles > Attachments: jpa-migrator-2.zip, jpa-migrator.zip > > > We need a way to upgrade the database (for JPA store) whenever it is needed. > In general, a database upgrade is needed further a JIRA that impacts the database. > This can be: > 1. On a db schema level (table, columns, fk, index,...) > 2. On data level (update some data, feed a column with relation keys,...). > Plain SQL would be enough for the first point (not for the second one). PLSQL (or similar) would be needed for the second point. > To ease things, a java "software" process will developed based on the existing JPA layer. > The tool should be invoked with JIRA numbers as parameters. > Each provided JIRA number would invoke a DB Change Command. > As POC (Proof of Concept), we will first develop a tool that takes into account. > - https://issues.apache.org/jira/browse/IMAP-176 > - https://issues.apache.org/jira/browse/IMAP-172 > - https://issues.apache.org/jira/browse/IMAP-168 > - https://issues.apache.org/jira/browse/IMAP-165 -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org For additional commands, e-mail: server-dev-help@james.apache.org