Re: Change data in DB before migrating

2023-09-03 Thread David Nugent
Yes, this is certainly possible. Migrations are just python scripts that follow a specific protocol/api that is detailed in the excellent django documentation. You can insert your own hand crafted migrations to handle many cases that can cater for a variety of use cases. i would suggest though an

Change data in DB before migrating

2023-09-03 Thread sebasti...@gmail.com
Hallo, sometimes it exists the problem that i change a field to another fieldtype then i want for example to move existing data in column to another column before migration of this field are running. Is there a possibility to execute a script before a field through migration are running? Regar