tortoise / aerich

A database migrations tool for TortoiseORM, ready to production.
https://github.com/tortoise/aerich
Apache License 2.0
804 stars 90 forks source link

Insert into a glossary table #332

Closed ydarma closed 2 months ago

ydarma commented 2 months ago

Hi,

Let's suppose I have a glossary table, say Languages. I created the model and the migration script. In the migration script I added the table content initialization by inserting 2 rows, e.g. en-US and fr-FR. One year later, the system runs in production and I need to add es-ES, how do I do that ?

Thanks

ydarma commented 2 months ago

My bad, I found the answer just after posting the issue !

For others that have the same problem, create an empty migration:

aerich migrate --name insert_language --empty