我正在使用sqlalchemy-postgresql-audit
库为我的数据库创建审计表,并且已经使用sqlalchemy
方法创建了class based
模型,但是在导入库和运行后sqlalchemy_postgresql_audit.enable()
之后,< / p>
python manage.py db migrate
以下是我的错误,是终端输出
user$ python manage.py db migrate
INFO [alembic.runtime.migration] Context impl PostgresqlImpl.
INFO [alembic.runtime.migration] Will assume transactional DDL.
INFO [alembic.autogenerate.compare] Detected added table 'audit_table'
INFO [alembic.ddl.postgresql] Detected sequence named 'global_attribute_id_seq' as owned by integer column 'global_attribute(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'config_id_seq' as owned by integer column 'config(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'master_task_id_seq' as owned by integer column 'master_task(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'cohort_config_id_seq' as owned by integer column 'cohort_config(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'user_task_audit_id_seq' as owned by integer column 'user_task_audit(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'user_attributes_history_id_seq' as owned by integer column 'user_attributes_history(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'recommended_job_id_seq' as owned by integer column 'recommended_job(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'resume_status_log_id_seq' as owned by integer column 'resume_status_log(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'job_score_id_seq' as owned by integer column 'job_score(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'job_program_id_seq' as owned by integer column 'job_program(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'application_id_seq' as owned by integer column 'application(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'user_attributes_id_seq' as owned by integer column 'user_attributes(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'application_status_id_seq' as owned by integer column 'application_status(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'job_cohort_id_seq' as owned by integer column 'job_cohort(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'transition_visibility_id_seq' as owned by integer column 'transition_visibility(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'score_attribute_audit_id_seq' as owned by integer column 'score_attribute_audit(id)', assuming SERIAL and omitting
INFO [alembic.ddl.postgresql] Detected sequence named 'company_id_seq' as owned by integer column 'company(id)', assuming SERIAL and omitting
ERROR [root] Error: Autogenerate rendering of SQL Expression language constructs not supported here; please use a plain SQL string
如您在终端输出中看到的那样
NFO [alembic.autogenerate.compare] Detected added table 'audit_table'
即要创建的audit_table
这是什么错误以及错误原因