Return-Path: X-Original-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-bloodhound-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3E876EF69 for ; Wed, 20 Feb 2013 11:48:46 +0000 (UTC) Received: (qmail 18756 invoked by uid 500); 20 Feb 2013 11:48:45 -0000 Delivered-To: apmail-incubator-bloodhound-dev-archive@incubator.apache.org Received: (qmail 18639 invoked by uid 500); 20 Feb 2013 11:48:43 -0000 Mailing-List: contact bloodhound-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: bloodhound-dev@incubator.apache.org Delivered-To: mailing list bloodhound-dev@incubator.apache.org Received: (qmail 18614 invoked by uid 99); 20 Feb 2013 11:48:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2013 11:48:42 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.41] (HELO mail-bk0-f41.google.com) (209.85.214.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2013 11:48:34 +0000 Received: by mail-bk0-f41.google.com with SMTP id q16so3593494bkw.0 for ; Wed, 20 Feb 2013 03:48:07 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=iGzOVpzUj81Fem5MYHq5nfu/b2tcv09I77loJ5fUyro=; b=oqZ9r0PqDpRSnuubHl3C8Mg8N2iOw8Qn2MjRQrxNisoxjRH5dcVsWv/vMC0Z8HHm44 ii2/NG/VDXf4RP5vi9EEvibGbsmgWT9XQhcWIDxw2M5lVPODfqa5tbCU/ovH3BN1SBRA P5szYgFMm2yfVVvzhPadwDUEAKxa4qHBbDULCG2d43AzhQ3bH/DgxNJ1iGuLyE62pGAo m3GEIvYio1C58aboED7tmU79W2f3jQRdecnWx+jl8D+O1tERFeKuvlJ7fNcGKx2ftmVw cVxbgSpdTfv496PASxA1s4nVjQlESR/CivZqvyiH9g9hOwTYwvSNX9Z1ZDgFr0jK4lCy 0V4g== X-Received: by 10.204.4.215 with SMTP id 23mr8154484bks.110.1361360887003; Wed, 20 Feb 2013 03:48:07 -0800 (PST) Received: from masinca.digiverse.si ([77.234.149.122]) by mx.google.com with ESMTPS id gm14sm23241628bkc.7.2013.02.20.03.48.05 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Feb 2013 03:48:06 -0800 (PST) Message-ID: <5124B7F5.3020805@digiverse.si> Date: Wed, 20 Feb 2013 12:48:05 +0100 From: Jure Zitnik User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: bloodhound-dev@incubator.apache.org Subject: [BEP-0003] Custom (3rd party plugin) table upgrade to multi-product (Was: Re: [Apache Bloodhound] #406: Database upgrade to multiproduct) References: <053.51bf3585855e4439e313b2cfef93bcf0@incubator.apache.org> In-Reply-To: <053.51bf3585855e4439e313b2cfef93bcf0@incubator.apache.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkQXuUTh+j5UhWLmC1LtYK7Txq/VbuXfWfgnhEMzONW3KTjc4Np/oEdVPkAQvOlOtyKsKM4 X-Virus-Checked: Checked by ClamAV on apache.org This is related to my previous mail on Bloodhound database upgrade to multi-product, this time in relation to 3rd party table upgrade. The question is how to upgrade & migrate data from custom (3rd party plugin) tables. Let's assume that we're able to identify tables that were created by 3rd party plugins by querying SQL server schema. The mechanism of migration itself shouldn't be a problem as the SQL translator already knows how to handle those custom tables. The question is to which product scope(s) and how the data should be migrated? We can't use the enabled components config as there's no way of linking those components to the database actual table(s). So, I would (naively) assume that the custom tables are migrated to all product scope(s). The problem with that is that we don't have any way of knowing what Bloodhound resources are referenced from those tables. It should work for all resources but tickets as all the resources (those get multiplied during Bloodhound database upgrade) are visible from all scopes. The tickets are a different story as only tickets in the product scope will be 'visible', which was not the case prior to database upgrade and the custom tables might end up referencing non-existent (after upgrade) tickets... Any ideas/suggestions on this one? Cheers, Jure On 2/20/13 11:45 AM, Apache Bloodhound wrote: > #406: Database upgrade to multiproduct > -----------------------------------+------------------ > Reporter: jure | Owner: jure > Type: defect | Status: new > Priority: major | Milestone: > Component: multiproduct | Version: > Keywords: bep-0003 multiproduct | > -----------------------------------+------------------ > Implement database upgrade from non multiproduct enabled database to > multiproduct enabled one. >