Re: Migration running in shell, but no change in DB

2023-04-06 Thread 'Martin Heitmann' via Django users
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

Re: Migration running in shell, but no change in DB

2023-04-06 Thread 'Martin Heitmann' via Django users
;> wrote: >>>>>>>>>>> >>>>>>>>>>>> I have a little update, but not a solution. Adding the database >>>>>>>>>>>> to sqlmigrate will give me the SQL command, but nothing more: >>

Re: Migration running in shell, but no change in DB

2023-04-06 Thread 'Martin Heitmann' via Django users
; -- Alter field w_bezahlt on waeschepaket >>>>>>>>>> -- >>>>>>>>>> >>>>>>>>>> And for whatever reason it includes only the table creation and >>>>>>>>>> not the change in the other

Re: Migration running in shell, but no change in DB

2023-04-05 Thread 'Martin Heitmann' via Django users
>>> >>>>>>>>> On Saturday, April 1, 2023 at 3:46:41 PM UTC+2 Martin Heitmann >>>>>>>>> wrote: >>>>>>>>> >>>>>>>>>> Dear Jason >>>>>>>>>> Thanks for

Re: Migration running in shell, but no change in DB

2023-04-02 Thread 'Martin Heitmann' via Django users
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

Re: Migration running in shell, but no change in DB

2023-04-01 Thread 'Martin Heitmann' via Django users
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 >>>

Re: Migration running in shell, but no change in DB

2023-04-01 Thread 'Martin Heitmann' via Django users
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 > ``` >

Re: Migration running in shell, but no change in DB

2023-04-01 Thread 'Martin Heitmann' via Django users
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

Re: Migration running in shell, but no change in DB

2023-04-01 Thread 'Martin Heitmann' via Django users
> 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.

Migration running in shell, but no change in DB

2023-03-31 Thread 'Martin Heitmann' via Django users
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