-
Notifications
You must be signed in to change notification settings - Fork 432
Fix migration into individual package #1209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
php/EE/Migration/Executor.php
Outdated
| } | ||
|
|
||
| private static function get_migrations_to_execute() { | ||
| private static function get_migrations_to_execute( $path ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add doc comment in function
php/EE/Migration/Executor.php
Outdated
| ); | ||
| } | ||
|
|
||
| private static function get_migrations_from_db() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add doc comment in function
php/EE/Migration/Executor.php
Outdated
| } | ||
|
|
||
| private static function get_migrations_from_fs() { | ||
| private static function get_migrations_from_fs( $path ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add doc comment in function
php/EE/Migration/Executor.php
Outdated
| } | ||
| } | ||
|
|
||
| private static function get_migration_class_name( $migration_name ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add doc comment in function
|
inform users that migrations are picked up from filesystem based on package name and inform where code is trying to find migration. https://github.com/EasyEngine/easyengine/pull/1209/files#diff-bfc37b6395768a2f0ee3bc8a300c5fceR78 |
86ce264 to
2deeeac
Compare
|
The PR is fine but we need to discuss how do we trigger migrations for the first time. Hence I'm blocking this PR for now. |
mrrobot47
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update PR according to changes in #1224
|
@kirtangajjar Please review this PR again as this is updated with latest migration changes from PR #1224 |
| use EE\Model\Migration; | ||
| use EE\Utils; | ||
|
|
||
| class Executor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless string interpolation is required, use single quotes.
This should have been flagged by PHPCS ideally. If it has not on your machine, ping me tommorow, well set it up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh okay. I didn't fix those PHPCS errors intentionally #1124 since this PR of @sagarnasit was already there and I informed him to take care of fixes.
| * @package EE\Migration | ||
| */ | ||
| class Blank extends \EE\Migration\Base { | ||
| class Test extends \EE\Migration\Base { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this file
9d677ed
Fixes #1203
Depends on:
EasyEngine/auth-command#9
Move migration execution in individual packages. Change migration execution logic for package migratoin as well.