On mié, 2022-06-29 at 10:17 +0530, Abhilash Raj wrote:
On Wed, Jun 29, 2022, at 2:21 AM, christopher.claus@tgcamberg1848.de wrote:
Hello together,
at startup of my docker-container with mailman 0.4.3 i got some warnings to apply some data-model-migrations. I´m very unfamilar with python and django and be not sure how to handle it. Are these warnings from mailman and should i migrate the data-model (and how)? Or should i ignore these message for keeping mailman in a safe state?
The warnings can be "safely" ignored. See below.
This might have something to do with the newer Django versions being pulled in during the build. Given that they are warnings, I don't think they will affect data. But regardless, can you open an issue on Github to track this? We want to make sure that either we downgrade Django or make sure affected components are updated to properly support new versions of Django.
I can take a look a bit later to see what's this new W402 check that was added.
The version of Django that introduced this (W402) warning is not so "new". It was introduced in Django 3.2. The "id" field that is the default primary key for those objects that do not have a explicit one defined (usually most objects) has changed from AutoField (32 bit integer in most setups) to BigAutoField (64 bit integer). That means that the number of possible objects has dramatically increased. What's the problem: if you do not explicitly define the type for the auto fields (in settings.py, for example, as DEFAULT_AUTO_FIELD), BigAutoField will be used, and that migh overflow your database columns for the id fields if you have big enough number of objects of a given Class.
This is basically why a migration is needed, to change the type of the "id" columns to be able to accept 64 bit integers.
-- Victoriano Giralt Innovation Director Digital Transformation Vicerectorate University of Malaga +34952131415 SPAIN
Note: signature.asc is the electronic signature of present message A: Yes.
Q: Are you sure ?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email ?