aerich icon indicating copy to clipboard operation
aerich copied to clipboard

Per-database type folders in the migrations folder

Open pmdevita opened this issue 4 years ago • 0 comments

I'm working on an application where I'm using SQLite in local testing and deploying to a server using MySQL. However, even though different migrations files are created for different database types, it stores them all in the same place under migrations/ and I currently have to manually copy the folder around to make sure I don't overwrite one type of migration with another.

Django doesn't have this issue because it abstracts it's migrations into Python scripts but since we are writing SQL query files here, I think it would be best to separate into per-database type folders like

migrations/
  sqlite/
  mysql/
  postgresql/

pmdevita avatar Dec 05 '21 02:12 pmdevita