psycopg2.errors.UndefinedTable: relation "model_id_seq" does not exist while migration of my module

It may be linked to the CamelCase name. But normally we do not remove the case on the table name (nor sequence name). Also before the failing code, there is a test about the existence of the sequence.

1 Like