Problem
I need to run a SQLite migration to migrate some data from one entity to another, and it needs to be executed in a certain order corresponding the rest of the brick migrations.
Example
- I have the following relationships:
EntityA -> EntityB -> EntityC already working in PRD.
- I need to change it to the following:
EntityA -> EntityC
- So I need to run a migration with an UPDATE statement for all
EntityA to copy the reference to EntityC from EntityB.
Question
Is there a way to run custom SQL following the migration order that brick is following so far?
Problem
I need to run a SQLite migration to migrate some data from one entity to another, and it needs to be executed in a certain order corresponding the rest of the brick migrations.
Example
EntityA -> EntityB -> EntityCalready working in PRD.EntityA -> EntityCEntityAto copy the reference toEntityCfromEntityB.Question
Is there a way to run custom SQL following the migration order that brick is following so far?