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

Migrations do not support environments #901

Closed
kenjis opened this issue Apr 3, 2012 · 5 comments
Closed

Migrations do not support environments #901

kenjis opened this issue Apr 3, 2012 · 5 comments

Comments

@kenjis
Copy link
Contributor

kenjis commented Apr 3, 2012

Current Migrations only updates "core/config/migrations.php" or "app/config/migrations.php" and does not support Environments.

But developers may use one installation as both development and test environments.

See: http://fuelphp.com/forums/topics/view/8566

@rob-mccann
Copy link
Contributor

Do you mean this:

php oil r migrate --env=production ?

@WanWizard
Copy link
Member

No, the problem is that the state of the migration is written to the config file app/config/migrations.php. Which means your application can only have one state.

If you want to support multiple environments within a single application installation, this file needs to be in the environment folder, not in the main folder.

@kenjis
Copy link
Contributor Author

kenjis commented Apr 3, 2012

And env FUEL_ENV test php oil r migrate reads "config/test/migrations.php", but writes the state to "config/migrations.php"

@kenjis
Copy link
Contributor Author

kenjis commented May 7, 2012

fixed 3c92f7c

@WanWizard
Copy link
Member

Indeed. Forgot to close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants