This makes test flights have different numbers to those currently in
production, which will help avoid accidents.
Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
---
v2: New patch
rm -f $t.tabledata.*
+ printf "flightseq..."
+
+ lastflight=$(psql_query <<END
+ SELECT last_value FROM flights_flight_seq
+END
+ )
+ newlastflight=$(( 10000 * (2 + $lastflight / 10000) ))
+
+ withtest psql_do <<END
+ ALTER SEQUENCE flights_flight_seq
+ RESTART WITH $newlastflight;
+END
+
#---------- actually borrow resources ----------
printf "borrow..."