update trytondatabase from 3.4.x -> 3.6.x fails
I tried to update my trytondatabases from release 3.4 to 3.6 - this works on an empty database or if I create a new database. The update procedure with:
trytond -d <databasename> --all -c /etc/tryton/trytond.conf
fails on existing databases with this message:
File "./trytond", line 80, in <module>
server.TrytonServer(options).run()
File "/usr/lib/python2.7/dist-packages/trytond/server.py", line 109, in run
Pool(db_name).init(update=self.options.update, lang=lang)
File "/usr/lib/python2.7/dist-packages/trytond/pool.py", line 155, in init
lang=lang)
File "/usr/lib/python2.7/dist-packages/trytond/modules/__init__.py", line 422, in load_modules
_load_modules()
File "/usr/lib/python2.7/dist-packages/trytond/modules/__init__.py", line 389, in _load_modules
load_module_graph(graph, pool, update, lang)
File "/usr/lib/python2.7/dist-packages/trytond/modules/__init__.py", line 233, in load_module_graph
cls.__register__(module)
File "/usr/lib/python2.7/dist-packages/trytond/modules/calendar/calendar_.py", line 483, in __register__
return super(Event, cls).__register__(module_name)
File "/usr/lib/python2.7/dist-packages/trytond/model/modelsql.py", line 71, in __register__
super(ModelSQL, cls).__register__(module_name)
File "/usr/lib/python2.7/dist-packages/trytond/model/model.py", line 114, in __register__
ModelField.register(cls, module_name, model_id)
File "/usr/lib/python2.7/dist-packages/trytond/ir/model.py", line 319, in register
model_fields[field_name]['id']))
File "/usr/lib/python2.7/dist-packages/trytond/backend/postgresql/database.py", line 324, in execute
return self.cursor.execute(sql, params)
psycopg2.IntegrityError: update or delete on table "ir_model_field" violates foreign key constraint "ir_rule_field_fkey" on table "ir_rule"
DETAIL: Key (id)=(933) is still referenced from table "ir_rule".
Can somebody tell me what's wrong? I checked the database ir_rule (export attached and found, that in field there is a value which is not unique (933). I guess - but I think that's the problem.