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: >

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