Skip to content

How to run SQLite custom migration inside brick migration flow? #642

@stefanorumi7

Description

@stefanorumi7

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions