I get the following error when I try to "alembic upgrade +1", which is meant for making database migrations.
File "/home/jason/redshift/env/lib/python3.4/site-packages/sqlalchemy/engine/default.py", line 436, in do_execute
cursor.execute(statement, parameters)
psycopg2.NotSupportedError: Column "analyses.id" has unsupported type "serial".
my SQLAlchemy models.py contains:
from alembic.ddl.postgresql import PostgresqlImpl
class RedshiftImpl(PostgresqlImpl):
__dialect__ = 'redshift'
and my url/host is:
sqlalchemy.url = redshift://USER:PASSWORD@XXXX.XXXXXXX.us-east-1.redshift.amazonaws.com:5439/
but for some reason it doesn't seem to be using this dialect. Do I need to modify the env.py? Or the models.py?