Ticket #1990: django_oracle_rev3817.patch
File django_oracle_rev3817.patch, 724 bytes (added by , 18 years ago) |
---|
-
management.py
163 163 field_output.append(style.SQL_KEYWORD('UNIQUE')) 164 164 if f.primary_key: 165 165 field_output.append(style.SQL_KEYWORD('PRIMARY KEY')) 166 if (settings.DATABASE_ENGINE == 'oracle') and f.unique and f.primary_key: 167 # Suppress UNIQUE/PRIMARY KEY for Oracle (ORA-02259) 168 field_output.remove(style.SQL_KEYWORD('UNIQUE')) 166 169 if f.rel: 167 170 if f.rel.to in known_models: 168 171 field_output.append(style.SQL_KEYWORD('REFERENCES') + ' ' + \