Reset sequences after re-import

This commit is contained in:
D. Berge
2020-09-23 15:48:21 +02:00
parent 97104556b7
commit 6b52383056

View File

@@ -50,7 +50,7 @@ if __name__ == '__main__':
# If we don't commit the data does not actually get copied
db.conn.commit()
# Update the sequences that generate event ids
cur.execute("SELECT reset_events_serials();")
cursor.execute("SELECT reset_events_serials();")
# Let us ensure events_timed_seq is up to date, even though
# the triggers will have taken care of this already.
cur.execute("CALL events_timed_seq_update_all();")