aerich
aerich copied to clipboard
Custom migrations
Hi @long2ice! Can I write my own migrations and how to do it? And can I create table records using migrations?
Thank you very much.
You can write custom sql in migration file after migrate
You can write custom sql in migration file after migrate
@long2ice Ok, but can I write sql queries to insert or delete rows in the migration file? And what is needed for this?
No, just add it in upgrade
section
And can we do that without returning SQL queries like we do in Django? Is there an example for that?
Now we use .py file to store version files, so you can write everything in it use Python.