Errors with db collation – no propagation to foreignkeys Description
Errors with db collation – no propagation to foreignkeys Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). Using db collation with a pk that also has referenced fks in other models causes foreign key constraint errors in MySQL. With the following models: class…
The task
Using db_collation with a pk that also has referenced fks in other models causes foreign key constraint errors in MySQL. With the following models: class Account(models.Model): id = ShortUUIDField(primary_key=True, db_collation='utf8_bin', db_index=True, max_length=22) … class Address(models.Model): id =…
Part of Lego-X/Lego-RL-SWE-Bench-Verified.