Due to some changes null -> not null on some fields, django is failing to migrate with following error: django.db.utils.OperationalError: cannot ALTER TABLE "client_client" because it has pending trigger events
This is due to existing data in the table, I would need a flush on client_client table. Can someone help me? No worries on data loss, we are in testing/development stage.
Instead of deleting the table’s data you could have the migration set the null fields to an empty string. That way there won’t be any problem changing the field to NOT NULL.
@Crowdbotics_Dan problem is that it deployed to some extent and I get 500 error in django/admin when I try to access change list admin view. Also delete for those entries do not work and they just throw 500 error. I was thinking on this all the way around before sending this message and I concluded that I’m locked out.
@radac, it sounds like the only thing left to do is empty out the client_client table. I’ll do that for you and let you know in this thread once it’s done.
@dmitrii.k another problem arose. currently I’m not able to deploy, more exactly I do not see success deploy message on dashboard. Also changes do not reflect on django admin dashboard.