All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [OSSTEST PATCH 5/8] Schema: Support database schema updates
Date: Fri, 11 Dec 2015 15:54:36 +0000	[thread overview]
Message-ID: <1449849276.30975.61.camel@citrix.com> (raw)
In-Reply-To: <22122.60652.768657.919911@mariner.uk.xensource.com>

On Fri, 2015-12-11 at 15:34 +0000, Ian Jackson wrote:
> Ian Campbell writes ("Re: [OSSTEST PATCH 5/8] Schema: Support database
> schema updates"):
> > On Fri, 2015-12-11 at 15:15 +0000, Ian Jackson wrote:
> > > I can put this in a comment if you like.
> > 
> > I suppose a comment next to any such override is a pretty good policy
> > to
> > have.
> 
> OK.  See below; I have folded each hunk into the appropriate patch.

Looks good, thanks.

> 
> > With that: Acked-by: Ian Campbell <ian.campbell@citrix.com>
> 
> Thanks,
> Ian.
> 
> diff --git a/mg-schema-create b/mg-schema-create
> index e15ecb9..9bb3040 100755
> --- a/mg-schema-create
> +++ b/mg-schema-create
> @@ -67,9 +67,17 @@ while [ $# != 0 ]; do
>  done
>  
>  export OSSTEST_DB_USEREAL_IGNORETEST='.*'
> +# Completely disable this safety catch, because it otherwise breaks
> +# when run on an empty schema (since there is no `tasks' table).
> +#
> +# It is not needed because if we are mistakenly operating on an
> +# existing database (test or real) we will bomb out because the first
> +# thing in `initial.sql' is to create the already-existing `flights'
> +# table ...
>  
>  . ./cri-getconfig
>  
> +# ... Unless some update has been applied which removed `flights':
>  updates_applied=$(./mg-schema-update list-applied)
>  if [ "x$updates_applied" != x ]; then
>      ./mg-schema-update show

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

  reply	other threads:[~2015-12-11 15:55 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-10 17:12 [OSSTEST PATCH v2 0/8] Support database schema updates Ian Jackson
2015-12-10 17:12 ` [OSSTEST PATCH 1/8] mg-schema-test-database: Fix argument parsing for _SUFFIX Ian Jackson
2015-12-10 17:12 ` [OSSTEST PATCH 2/8] Schema: Rename schema file Ian Jackson
2015-12-10 17:12 ` [OSSTEST PATCH 3/8] Schema: Remove SET OWNER and GRANT/REVOKE from schema/initial.sql Ian Jackson
2015-12-10 17:12 ` [OSSTEST PATCH 4/8] Schema: Introduce mg-schema-create Ian Jackson
2015-12-10 17:17   ` Ian Campbell
2015-12-10 17:26     ` Ian Jackson
2015-12-10 17:12 ` [OSSTEST PATCH 5/8] Schema: Support database schema updates Ian Jackson
2015-12-10 17:48   ` Ian Campbell
2015-12-10 18:00     ` Ian Jackson
2015-12-10 18:27       ` Ian Jackson
2015-12-11 13:31         ` Ian Campbell
2015-12-11 15:15           ` Ian Jackson
2015-12-11 15:18             ` Ian Campbell
2015-12-11 15:34               ` Ian Jackson
2015-12-11 15:54                 ` Ian Campbell [this message]
2015-12-11 11:58       ` Ian Campbell
2015-12-11 15:08         ` Ian Jackson
2015-12-10 17:12 ` [OSSTEST PATCH 6/8] Schema: Check that schema creation and update runs as the right user Ian Jackson
2015-12-10 17:12 ` [OSSTEST PATCH 7/8] Schema: drop old resource_log table Ian Jackson
2015-12-10 17:12 ` [OSSTEST PATCH 8/8] Schema: When creating, check that no updates are applied Ian Jackson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1449849276.30975.61.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.