Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.

how to handle migrations in modules #22

@alfredbez

Description

@alfredbez

It would be nice to be able to execute migrations from modules directories aswell. Most modules use currently the onActivate() but implement their own logic which reads a SQL file in most cases.

We could overwrite

protected function _buildMigrationQueries()
to load the migrations not only from the migration directory but from all migration directories in the modules directory.

I'm not sure if this is only needed for running migrations or for generating them, too. That would be a bit more hassle since we need to extend the template to include a specific namespace, put the migration file into a different directory + check if the directory exists etc.

Metadata

Metadata

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