Hi There,
While testing with firebird 3 - suppose alter table etc. should be used instead...
UPDATE operation is not allowed for system table RDB$RELATION_FIELDS
pls let me know if more info is required - see below
Many thanks,
dvt
$ python3 manage.py migrate
Operations to perform:
Apply all migrations: admin, auth, contenttypes, sessions
Running migrations:
Applying contenttypes.0001_initial... OK
Applying auth.0001_initial... OK
Applying admin.0001_initial... OK
Applying admin.0002_logentry_remove_auto_add... OK
Applying contenttypes.0002_remove_content_type_name...Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.5/dist-packages/django_firebird-1.9a0-py3.5.egg/firebird/base.py", line 236, in execute
return self.cursor.execute(q, params)
File "/usr/local/lib/python3.5/dist-packages/fdb/fbcore.py", line 3576, in execute
self._ps._execute(parameters)
File "/usr/local/lib/python3.5/dist-packages/fdb/fbcore.py", line 3291, in _execute
"Error while executing SQL statement:")
fdb.fbcore.DatabaseError: ('Error while executing SQL statement:\n- SQLCODE: -902\n- UPDATE operation is not allowed for system table RDB$RELATION_FIELDS', -902, 335545030)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 367, in execute_from_command_line
utility.execute()
File "/usr/lib/python3/dist-packages/django/core/management/init.py", line 359, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 294, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/lib/python3/dist-packages/django/core/management/base.py", line 345, in execute
output = self.handle(*args, **options)
File "/usr/lib/python3/dist-packages/django/core/management/commands/migrate.py", line 204, in handle
fake_initial=fake_initial,
File "/usr/lib/python3/dist-packages/django/db/migrations/executor.py", line 115, in migrate
state = self._migrate_all_forwards(state, plan, full_plan, fake=fake, fake_initial=fake_initial)
File "/usr/lib/python3/dist-packages/django/db/migrations/executor.py", line 145, in _migrate_all_forwards
state = self.apply_migration(state, migration, fake=fake, fake_initial=fake_initial)
File "/usr/lib/python3/dist-packages/django/db/migrations/executor.py", line 244, in apply_migration
state = migration.apply(state, schema_editor)
File "/usr/lib/python3/dist-packages/django/db/migrations/migration.py", line 129, in apply
operation.database_forwards(self.app_label, schema_editor, old_state, project_state)
File "/usr/lib/python3/dist-packages/django/db/migrations/operations/fields.py", line 204, in database_forwards
schema_editor.alter_field(from_model, from_field, to_field)
File "/usr/lib/python3/dist-packages/django/db/backends/base/schema.py", line 495, in alter_field
old_db_params, new_db_params, strict)
File "/usr/local/lib/python3.5/dist-packages/django_firebird-1.9a0-py3.5.egg/firebird/schema.py", line 262, in _alter_field
self.execute(sql, params)
File "/usr/local/lib/python3.5/dist-packages/django_firebird-1.9a0-py3.5.egg/firebird/schema.py", line 404, in execute
cursor.execute(sql, params)
File "/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 79, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/lib/python3/dist-packages/django/db/utils.py", line 94, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/lib/python3/dist-packages/django/utils/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/usr/lib/python3/dist-packages/django/db/backends/utils.py", line 64, in execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.5/dist-packages/django_firebird-1.9a0-py3.5.egg/firebird/base.py", line 236, in execute
return self.cursor.execute(q, params)
File "/usr/local/lib/python3.5/dist-packages/fdb/fbcore.py", line 3576, in execute
self._ps._execute(parameters)
File "/usr/local/lib/python3.5/dist-packages/fdb/fbcore.py", line 3291, in _execute
"Error while executing SQL statement:")
django.db.utils.DatabaseError: ('Error while executing SQL statement:\n- SQLCODE: -902\n- UPDATE operation is not allowed for system table RDB$RELATION_FIELDS', -902, 335545030)