Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We've made some exciting improvements to the Spiral Framework's Cycle Bridge! Check out what's new:
1. Separate Migrations for Each Entity:
We've added a
split
option to thecycle:migrate
command. Now, when you runit will create individual migrations for each entity.
This means if you have changes in different entity schemas, each entity will get its own specific migration. Super handy for organizing your database updates!
2. Prompt for Pending Migrations:
If there are migrations you haven't completed yet, using
cycle:migrate
will now prompt you with a choice.When you run
it will ask if you want to execute these outstanding migrations right away like in the example below:
You can use option
--no-interaction
or-n
to omit this question.3. Safety Check for
cycle:sync
:To prevent accidental execution in production, we've added a confirmation step for the
cycle:sync command
.When you try
in a production environment, it will now ask for your confirmation before proceeding:
This extra step helps avoid unintended changes in your live environment.
4. Default 'No' for Critical Commands in Production:
For added security, commands that require environmental checks and confirmations to continue in a production setting will now have
no
as the default option. This means if you accidentally hit enter, it won't proceed unless you explicitly typeyes
. A small change, but a big win for avoiding unintended actions!5. Improved Console Messages:
We've also tweaked some of the messages you see in the console for better clarity and user experience.
We're excited about these updates and believe they will make managing your Spiral projects even smoother. As always, we appreciate your feedback and contributions!
issue #82