diff mbox

[OSSTEST,04/17] schema updates: mg-schema-test-database: Cope with applied updates

Message ID 1498839920-17025-5-git-send-email-ian.jackson@eu.citrix.com (mailing list archive)
State New, archived
Headers show

Commit Message

Ian Jackson June 30, 2017, 4:25 p.m. UTC
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 | 3 +++
 1 file changed, 3 insertions(+)
diff mbox

Patch

diff --git a/mg-schema-test-database b/mg-schema-test-database
index 0517ca3..641aadb 100755
--- a/mg-schema-test-database
+++ b/mg-schema-test-database
@@ -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" ;;