I am creating a product based on the Yii2 extended template.
As part of this product and its future deployments, I am trying to automatically create authorization-related tables in a regular Yii2 migration.
For example, when an end user installs a product and runs the regular Yii migration commands, it must have fully functional user management and authorization.
For authorization, the Yii2 RBAC documentation page indicates that 4 tables are required (auth_ *). The documentation states that they were created by performing the following migration:
yii migrate --migrationPath=@yii /rbac/migrations
I would like to compensate for this additional nuisance for the end user by running a specific migration code for him within the regular migration, which will be stored in common/migrations .
Any simple solution for this?
source share