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

Added migration create command for creating empty migration classes #1055

Merged
merged 1 commit into from
Dec 6, 2015

Conversation

motin
Copy link
Contributor

@motin motin commented Dec 5, 2015

Fixes #832

For semantic reasons, I chose to implement it as a separate command instead of an "--empty" command to migration:diff.

Usage and verbose output:

# vendor/bin/propel migration:create -vvv
"/app/dna/generated-migrations/PropelMigration_1449320135.php" file successfully created.
Now add SQL statements and data migration code as necessary.
Once the migration class is valid, call the "migrate" task to execute it.

marcj added a commit that referenced this pull request Dec 6, 2015
Added migration create command for creating empty migration classes
@marcj marcj merged commit 2667854 into propelorm:master Dec 6, 2015
@marcj
Copy link
Member

marcj commented Dec 6, 2015

Very cool, thanks! We should also add this to PropelBundle: propelorm/PropelBundle#372

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