Skip to content

Register a custom migration path.#79

Open
ouyanglingyun wants to merge 8 commits intotop-think:3.0from
ouyanglingyun:3.0
Open

Register a custom migration path.#79
ouyanglingyun wants to merge 8 commits intotop-think:3.0from
ouyanglingyun:3.0

Conversation

@ouyanglingyun
Copy link
Copy Markdown

Example:

$this->app->resolving('migration.migrator', function ($migrator, $app) {
    $path = $app->getRootPath() . 'vendor' . DIRECTORY_SEPARATOR . 'test' .  DIRECTORY_SEPARATOR . 'migrations';
    $migrator->path($path);
});

	modified:   composer.json
	modified:   phinx/src/Phinx/Util/Util.php
	renamed:    src/MigratorProvider.php -> src/Migrant.php
	modified:   src/Service.php
	modified:   src/command/Migrate.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant