-
-
Notifications
You must be signed in to change notification settings - Fork 496
Doctrine Migrations #57
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
doctrine_migrations: | ||
dir_name: '%kernel.project_dir%/DoctrineMigrations' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The name of this option looks confusing. |
||
namespace: App\Migrations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need both the namespace and the "dir_name"? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
And we need to define them explicitly here, because the recipe decided to use non-default values. |
||
table_name: migration_versions | ||
name: Application Migrations | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the purpose of this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would remove this config:
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then, if possible, let's remove the "name" config option. Thanks! |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"bundles": { | ||
"Doctrine\\Bundle\\MigrationsBundle\\DoctrineMigrationsBundle": ["all"] | ||
}, | ||
"copy-from-recipe": { | ||
"etc/": "%ETC_DIR%/" | ||
}, | ||
"aliases": ["doctrine-migrations", "migrations"] | ||
} |
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.
Why adding it at the project root? Shouldn't it rather be in
src
? Or maybe inetc
?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.
this should not be at the root. Migrations are code, and so should be in
src/
.Btw, this means that the default value of
%kernel.root_dir%/DoctrineMigrations
will work fine for people putting their kernel insrc
(which is the case in Flex).