db-migration
Installation
SKILL.md
Activepieces DB Migration
Create TypeORM database migrations for schema changes in the Activepieces server API.
Workflow
Step 1: DETERMINE THE CHANGE
Before generating, identify:
- Which table(s) are affected
- What SQL is needed (
ADD COLUMN,CREATE TABLE,CREATE INDEX, etc.) - Whether the migration is breaking (drops columns/tables, transforms data irreversibly — cannot be rolled back safely)
- The current release version (check root
package.json→version)
Step 2: UPDATE THE ENTITY
Update the TypeORM entity file in packages/server/api/src/app/ to reflect the new schema. This ensures the CLI generation command can diff against the current state.