Documentation for add field <https://docs.djangoproject.com/en/4.1/ref/schema-editor/#add-field>
implementation of add_field <https://github.com/django/django/blob/e9fd2b572410b1236da0d3d0933014138d89f44e/django/db/backends/base/schema.py#L627> postgres schema editor <https://github.com/django/django/blob/e9fd2b572410b1236da0d3d0933014138d89f44e/django/db/backends/postgresql/schema.py#L8> schema editor is only exeucted in migrate, not making migrations. On Thursday, August 18, 2022 at 8:39:02 PM UTC-4 subtitle indo wrote: > Hi > > On Wed, Aug 17, 2022 at 3:51 PM Alucor Rpa <aluco...@gmail.com> wrote: > >> Hi, >> We are trying to understand the schema editor and how new fields are >> added to the tables when running makemigrations and migrate commands. Can >> you please help me with some materials or links to understand this? >> >> Thanks >> Sherlin. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Django users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to django-users...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/django-users/a383abc7-959e-4c76-b34e-04f37a98b964n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/django-users/a383abc7-959e-4c76-b34e-04f37a98b964n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b0ebe8b2-83f7-4b79-b407-c2c131231929n%40googlegroups.com.