I have a postgres DB, which I manage through SQLAlchemy and alembic (for migrations). When creating a DB migration through alembic, I get the following INFO in the console.
INFO [alembic.ddl.postgresql] Detected sequence named 'my_table_name_id_seq' as owned by integer column 'my_table_name(id)', assuming SERIAL and omitting
My model looks like
class CopyJob(db.Model):
__tablename__ = "my_table_name"
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
I interpret the above as a warning. One line is generated for each of my tables. I have two questions:
- Am I doing something wrong when getting the warning above
- What should I fix / explicitly set, in order to make it go away. Migrations are too verbose.
Thank you!