Skip to content

Sequences in schema dump are splitted

Latest
Compare
Choose a tag to compare
@foton foton released this 26 Aug 13:08

Statement create_table also creates sequence for id (named :tablename_id_seq).
So we have to create "non id_seq" sequences before tables, so they can be used in creating tables.
And, just for safety, try to create sequences "id_seq" after tables (silently skipping no-creation-for-duplicate-sequence)