Skip to content
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

Allow to configure sql/migrations dir #459

Merged
merged 1 commit into from
Aug 31, 2017
Merged

Allow to configure sql/migrations dir #459

merged 1 commit into from
Aug 31, 2017

Conversation

gharlan
Copy link
Contributor

@gharlan gharlan commented Jul 30, 2017

With symfony/flex the kernel.root_dir changed from /app to /src.
Before this pr the paths to sql and migrations files were hardcoded to %kernel.root_dir%/propel/{sql,migrations}.
So with symfony flex this would be /src/propel/....
But I do not want to place the sql and migration files in src.

With this pr the paths are configurable (but they default to the same paths as before).

Example for a custom configuration:

propel:
    paths:
        schemaDir: '%kernel.project_dir%/database'
        sqlDir: '%kernel.project_dir%/database/sql'
        migrationDir: '%kernel.project_dir%/database/migrations'

(%kernel.project_dir% is new in sf 3.3)

@marcj marcj merged commit 59f3b4a into propelorm:3.0 Aug 31, 2017
@marcj
Copy link
Member

marcj commented Aug 31, 2017

Again, good stuff. thanks! :)

@gharlan gharlan deleted the paths branch August 31, 2017 11:56
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.

2 participants