使用 Django 配置 Oracle 数据库并在迁移应用程序时遇到错误
django.db.migrations.exceptions.MigrationSchemaMissing:无法创建 dja ngo_migrations 表(ORA-02000:缺少 ALWAYS 关键字)
application environment
1.windows10
2.Python 3.6.x
3.Django 2.0.2
4.oracle 11g XE
in settins.py file
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.oracle',
'NAME': 'xe',
'USER': 'abc',
'PASSWORD':'xxxx',
'HOST':'localhost',
'PORT':"1521",
}
Run Code Online (Sandbox Code Playgroud)