mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 10:17:07 +00:00
Reset sequences after re-import
This commit is contained in:
@@ -50,7 +50,7 @@ if __name__ == '__main__':
|
|||||||
# If we don't commit the data does not actually get copied
|
# If we don't commit the data does not actually get copied
|
||||||
db.conn.commit()
|
db.conn.commit()
|
||||||
# Update the sequences that generate event ids
|
# 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
|
# Let us ensure events_timed_seq is up to date, even though
|
||||||
# the triggers will have taken care of this already.
|
# the triggers will have taken care of this already.
|
||||||
cur.execute("CALL events_timed_seq_update_all();")
|
cur.execute("CALL events_timed_seq_update_all();")
|
||||||
|
|||||||
Reference in New Issue
Block a user