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
;> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I have a little update, but not a solution. Adding the database
>>>>>>>>>>>> to sqlmigrate will give me the SQL command, but nothing more:
>>
; -- Alter field w_bezahlt on waeschepaket
>>>>>>>>>> --
>>>>>>>>>>
>>>>>>>>>> And for whatever reason it includes only the table creation and
>>>>>>>>>> not the change in the other
>>>
>>>>>>>>> On Saturday, April 1, 2023 at 3:46:41 PM UTC+2 Martin Heitmann
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> Dear Jason
>>>>>>>>>> Thanks for
tting 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 context of how and what is being executed, we don't, so
>>>> sharing that with your original questions
gt;>> 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 Heitmann wrote:
>>>
>>>> The migrations do not show up in the django_mirations table. The
>>>
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
> ```
>
e that the
>>> migration has successfully been run.
>>>
>>>
>>>
>>> From: 'Martin Heitmann' via Django users
>>> Reply: django...@googlegroups.com
>>> Date: 31 March 2023 at 19:46:02
>>> To: Django users
>>> Subject: Migration
> 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.
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
10 matches
Mail list logo