Hello everyone
I have a project with multiple apps in it. As database I use MariaDB. Have
not touched it for a while, but now I had to add a field to the models of
one app. makemigrations and migrate run without any indication of an error.
But no change occurs in the db. Tested it with an alter
> From: 'Martin Heitmann' via Django users
> Reply: django...@googlegroups.com
> Date: 31 March 2023 at 19:46:02
> To: Django users
> Subject: Migration running in shell, but no change in DB
>
> Hello everyone
>>
>> I have a project with multiple apps in it
2023 at 8:42:20 AM UTC+2 David Nugent wrote:
>>
>>> I would check in the django_migrations table to ensure that the
>>> migration has successfully been run.
>>>
>>>
>>>
>>> From: 'Martin Heitmann' via Django users
>>> Reply: django.
Dear Muhammad
Thanks, but I did that several times. And I also check the INSTALLED_APPS.
It is listed there, as it was before. :/
Best regards
Martin
On Saturday, April 1, 2023 at 2:48:05 PM UTC+2 Muhammad Juwaini Abdul
Rahman wrote:
> Try running:
> ```
> ./manage.py makemigrations
> ```
>
enerated would be helpful.
>>> you do have the context of how and what is being executed, we don't, so
>>> sharing that with your original questions is a big part in getting
>>> effective help
>>> On Saturday, April 1, 2023 at 4:08:06 AM UTC-4 Martin Heit
;>> On Saturday, April 1, 2023 at 1:55:00 PM UTC+2 Jason wrote:
>>>
>>>> part of getting effective help is sharing how you're doing things and
>>>> the code. for example, sharing the migration generated would be helpful.
>>>> you do have the c
> --
>>>>>>>>> It does not include any SQL.
>>>>>>>>>
>>>>>>>>> Does anyone know where this is no SQL in the output?
>>>>>>>>>
>>>>>>>>> On Saturday, April 1, 20
;>>>>>>>>> datetime(6) NOT NULL, `wa_bearbeitungsdatum` datetime(6) NOT NULL);
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> -- Alter field w_bezahlt on waeschepaket
>>>>>>
hould not be the source of the problem.
>>>>>>>>>>>
>>>>>>>>>>> On Saturday, April 1, 2023 at 8:07:57 PM UTC+2 Martin Heitmann
>>>>>>>>>>> wrote:
>>>>>>>>>&g
So,
I put this at the start of my router.py:
import logging
logger = logging.getLogger(__name__)
I have never used that, but I hope it is right.
Then below at the app's router and the allow_migrate def I did this:
def allow_migrate(self, db, app_label, model_name=None, **hints):
if ap
10 matches
Mail list logo