Open elasticdotventures opened 3 years ago
Sorry, this software is incomplete and has many other bugs. I'm trying to keep up with Django 3.2, but so far I haven't had a chance. There are no plans to fix the bugs in 3.1.
$ python manage.py migrate Operations to perform: Apply all migrations: admin, auth, contenttypes, sessions, sites Running migrations: Applying auth.0008_alter_user_username_max_length...Traceback (most recent call last): File "/home/user/env/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute return self.cursor.execute(sql, params) File "/home/user/env/lib/python3.9/site-packages/djfirebirdsql/cursor.py", line 70, in execute raise e File "/home/user/env/lib/python3.9/site-packages/djfirebirdsql/cursor.py", line 67, in execute super().execute(self.query) File "/home/user/env/lib/python3.9/site-packages/firebirdsql/fbcore.py", line 327, in execute (h, oid, buf) = self.transaction.connection._op_response() File "/home/user/env/lib/python3.9/site-packages/firebirdsql/wireprotocol.py", line 1146, in _op_response return self._parse_op_response() File "/home/user/env/lib/python3.9/site-packages/firebirdsql/wireprotocol.py", line 307, in _parse_op_response raise OperationalError(message, gds_codes, sql_code) firebirdsql.OperationalError: ALTER TABLE "AUTH_USER" ALTER "USERNAME" TYPE varchar(150): unsuccessful metadata update ALTER TABLE AUTH_USER failed action cancelled by trigger (1) to preserve data integrity Cannot update index segment used by an Integrity Constraint
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/user/server/manage.py", line 33, in
django==3.1 latest djfirebirdsql
Sorry I haven't maintained this for so long.
The django version keeps going up and up and up and I'm tired of it. I may pop back and fix things for the latest version of django, but I don't think I'll be able to do anything for a while.
I wish Django would do a builtin Firebird backend!
Trying to migrate an existing Django application from mssql/odbc to firebird Any suggestions how to troubleshoot is appreciated.
Firebird 4.0rc1 running in docker container on port 3050 Django 3.1.6 latest firebirdsql & djfirebirdsql i.e.: git+git://github.com/nakagami/djfirebirdsql#djfirebirdsql git+git://github.com/nakagami/pyfirebirdsql#firebirdsql
File "/usr/local/lib/python3.8/dist-packages/firebirdsql/wireprotocol.py", line 305, in _parse_op_response raise OperationalError(message, gds_codes, sql_code) firebirdsql.OperationalError: ALTER TABLE "AUTH_USER" ALTER "USERNAME" TYPE varchar(150): unsuccessful metadata update ALTER TABLE AUTH_USER failed action cancelled by trigger (1) to preserve data integrity Cannot update index segment used by an Integrity Constraint
....
django.db.utils.OperationalError: ('unsuccessful metadata update\nALTER TABLE AUTH_USER failed\naction cancelled by trigger (1) to preserve data integrity\nCannot update index segment used by an Integrity Constraint\n', 0)