$ ./runtests.py --settings=test_oracle migrations
Testing against Django installed in '/home/tim/code/django/django'
Creating test database for alias 'default'...
Creating test user...
Creating test database for alias 'other'...
Creating test user...
.................................................s............................................E....
======================================================================
ERROR: test_remove_fk (migrations.test_operations.OperationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tim/code/django/tests/migrations/test_operations.py", line 468, in test_remove_fk
operation.database_backwards("test_rfk", editor, new_state, project_state)
File "/home/tim/code/django/django/db/backends/schema.py", line 82, in __exit__
self.execute(sql)
File "/home/tim/code/django/django/db/backends/schema.py", line 98, in execute
cursor.execute(sql, params)
File "/home/tim/code/django/django/db/backends/utils.py", line 59, in execute
return self.cursor.execute(sql, params)
File "/home/tim/code/django/django/db/utils.py", line 94, in __exit__
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/tim/code/django/django/db/backends/utils.py", line 59, in execute
return self.cursor.execute(sql, params)
File "/home/tim/code/django/django/db/backends/oracle/base.py", line 879, in execute
return self.cursor.execute(query, self._param_generator(params))
DatabaseError: ORA-00972: identifier is too long
The offending query is
ALTER TABLE "TEST_RFK_RIDER" ADD CONSTRAINT pony_id_refs_id_3e34515040abc59a FOREIGN KEY ("PONY_ID") REFERENCES "TEST_RFK_PONY" ("ID") DEFERRABLE INITIALLY DEFERRED
aslen('pony_id_refs_id_3e34515040abc59a') > 30
(the limit on Oracle). Shai said he will look at it later.