Unable to create the django_migrations table (ORA-02000: missing ALWAYS keyword)

大憨熊 提交于 2019-12-01 06:44:57

I have faced the same issues during migration. I downgraded Django version to 1.1 and changed some codes in base.py for Oracle database as given in a link and it's working fine now.

user9254722

version problem
in this.py add:

print(sql)
return self.cursor.execute(sql)

then run:

python manage.py migrate

You can see the problem. while Django creates an Oracle table use 'GENERATED BY DEFAULT ON NULL' that is Oracle 12c new characteristics. So you can change Oracle to 12c or change ox_oracle version.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!