From: Ian Jackson Subject: Re: [OSSTEST PATCH 5/8] Schema: Support database schema updates Date: Fri, 11 Dec 2015 15:15:24 +0000 Message-ID: <22122.59532.710311.955926@mariner.uk.xensource.com> References: <1449767545-9410-1-git-send-email-ian.jackson@eu.citrix.com> <1449767545-9410-6-git-send-email-ian.jackson@eu.citrix.com> <1449769713.9759.111.camel@citrix.com> <22121.48596.663367.284017@mariner.uk.xensource.com> <22121.50201.384653.237194@mariner.uk.xensource.com> <1449840716.30975.8.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a7PPt-0001pm-Lu for xen-devel@lists.xenproject.org; Fri, 11 Dec 2015 15:15:29 +0000 In-Reply-To: <1449840716.30975.8.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [OSSTEST PATCH 5/8] Schema: Support database schema updates"): > On Thu, 2015-12-10 at 18:27 +0000, Ian Jackson wrote: > > See schema/README.schema, introduced in this patch, for the design. > > The README looks good now, thanks. Thanks. > Code comments.... > > diff --git a/mg-schema-create b/mg-schema-create ... > > +export OSSTEST_DB_USEREAL_IGNORETEST='.*' > > Why remove the safety catch in this context? The safety catch breaks when run on an empty schema, because there is no `tasks' table. Setting this pattern to `.*' triggers a special case which avoids even trying to see what test DBs exist. And furthermore the safety catch is not needed because if we are mistakenly operating on an existing database (test or real) we bomb out as previously discussed. I can put this in a comment if you like. Ian.