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

feat(console): add make:migration command #871

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

gturpin-dev
Copy link
Contributor

This PR adds the make:migration command
This checks a TODO on #759

The command allows you to create a raw migration file in SQL with the following command :
tempest make:migration create-book-table raw

You can create a classic migration file in PHP using :
tempest make:migration CreateBookTable

Or you can even create a migration file for a specific existing model with :
tempest make:migration CreateBookTable model
Tempest will scan the main namespace and let you chose in all classes that implements DatabaseModel the Model you want to create the migration for
The final generated file and statements are then slightly differents

@gturpin-dev
Copy link
Contributor Author

Note that this PR should not be merged without fixing #866 and #867 as those issues have been discovered while working on this PR.

Copy link

This pull request is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 23, 2025
Copy link

This pull request was closed because it has been inactive for 1 day since being marked as stale.

@github-actions github-actions bot closed this Jan 24, 2025
@innocenzi innocenzi reopened this Jan 24, 2025
@innocenzi innocenzi removed the stale label Jan 24, 2025
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