Re: Looking for a code that separates fields while applying migrations

2023-11-28 Thread Michiel Beijen
On 28 Nov 2023, at 13:00, Remy Lukoo Hangi wrote: > > Fais-moi le setup.exe de python django suis débutant > Hi Remy, You found the developers email list for Django. Actually the email lists are not really used anymore, and you should use the ‘forums’ instead —> https://forum.djangoproject.c

Re: Looking for a code that separates fields while applying migrations

2023-11-28 Thread Remy Lukoo Hangi
Fais-moi le setup.exe de python django suis débutant Le mardi 3 octobre 2023 à 06:41:12 UTC+2, Akash Sen a écrit : > This one worked : SQL: > https://github.com/django/django/blob/f4e72e6523e6968d9628dfbff914ab57dbf19e6b/django/db/models/fields/__init__.py#L142 > . > Thank you Adam. > > On Mo

Re: Looking for a code that separates fields while applying migrations

2023-10-02 Thread Akash Sen
This one worked : SQL: https://github.com/django/django/blob/f4e72e6523e6968d9628dfbff914ab57dbf19e6b/django/db/models/fields/__init__.py#L142 . Thank you Adam. On Monday, October 2, 2023 at 3:44:34 PM UTC+5:30 Adam Johnson wrote: > See alte_field in the schema editor: > https://github.com/d

Re: Looking for a code that separates fields while applying migrations

2023-10-02 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
See alte_field in the schema editor: https://github.com/django/django/blob/f4e72e6523e6968d9628dfbff914ab57dbf19e6b/django/db/backends/base/schema.py#L811 It steps through what has changed in the field and generates SQL for the database relevant changes, queueing up statements with self.execute.

Looking for a code that separates fields while applying migrations

2023-09-30 Thread Akash Sen
Hello everyone, There are certain attributes in a field, after changing these the migration generated willbe applied to database, (for example take foreignkey) like null=True or db_default=1. As they have something to do with the database column. There are some other attributes after changing th