]> xenbits.xensource.com Git - people/iwj/osstest.git/commitdiff
schema updates: mg-schema-test-database: Cope with applied updates
authorIan Jackson <ian.jackson@eu.citrix.com>
Thu, 29 Jun 2017 11:41:50 +0000 (12:41 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 30 Jun 2017 16:11:22 +0000 (17:11 +0100)
The schema_updates table contents are written by the call to
mg-schema-update.  Trying to copy the contents from the source db
correctly fails with duplicate key errors.  So don't do that.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
mg-schema-test-database

index 0517ca368a11bb0e6f73676f76c72fa4c03024cb..641aadb7e67c1191bb0a11317f43c7b46c41f862 100755 (executable)
@@ -467,6 +467,9 @@ END
 END
 
        for table in $tables; do
+               case $table in
+               schema_updates) continue ;;
+               esac
                case " $ftables " in
                *" $table "*)   condition="flight >= $minflight" ;;
                *)              condition="1=1" ;;