Skip to content

Removed operations:refresh and operations:reset console commands #209

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

Merged
merged 3 commits into from
Apr 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/do.tree
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<toc-element toc-title="Prologue">
<toc-element topic="introduction.topic" />
<toc-element toc-title="Upgrade Guide">
<toc-element topic="upgrade-7.topic" toc-title="Upgrade to 7.x" accepts-web-file-names-ref="upgrade_guide" />
<toc-element topic="upgrade-7.topic" toc-title="Upgrade to 7.x" />
<toc-element topic="upgrade-6.topic" toc-title="Upgrade to 6.x" />
<toc-element topic="upgrade-5.topic" toc-title="Upgrade to 5.x" />
<toc-element topic="upgrade-4.topic" toc-title="Upgrade to 4.x" />
Expand Down
4 changes: 0 additions & 4 deletions docs/redirection-rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
<description>Created after removal of "Running Operations" from Deploy Operations</description>
<accepts>guide/basic.html</accepts>
</rule>
<rule id="upgrade_guide">
<description>Created after removal of "Running Operations" from Deploy Operations</description>
<accepts>upgrade-guide/</accepts>
</rule>
<rule id="guide_running">
<description>Created after removal of "Running Operations" from Deploy Operations</description>
<accepts>guide/running.html</accepts>
Expand Down
33 changes: 0 additions & 33 deletions docs/topics/rolling-back-operations.topic
Original file line number Diff line number Diff line change
Expand Up @@ -31,45 +31,12 @@
%artisan% %command_rollback% --step=5
</code-block>

<p>
The <code>%command_reset%</code> command will roll back all of your application's operations:
</p>

<code-block lang="bash">
%artisan% %command_reset%
</code-block>

<p>
For example:
</p>

<code-block lang="bash" src="rollback.sh" />

<chapter
title="Roll Back &amp; Operation Using A Single Command"
id="roll_back_amp_operation_using_a_single_command"
>
<p>
The
<code>%command_refresh%</code> command will roll back all of your operations and then execute the operations command.
This command effectively re-creates your entire database:
</p>

<code-block lang="bash">
%artisan% %command_refresh%
</code-block>

<p>
You may roll back and re-run a limited number of operations by providing the <code>step</code> option to the
<code>%command_refresh%</code> command.
For example, the following command will roll back and re-run the last five operations:
</p>

<code-block lang="bash">
%artisan% %command_refresh% --step=5
</code-block>
</chapter>

<chapter title="Drop All &amp; Rerun Operations" id="drop_all_amp_rerun_operations">
<p>
The
Expand Down
12 changes: 12 additions & 0 deletions docs/topics/upgrade-7.topic
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
<procedure title="Minor-Impact Changes" id="minor_impact_changes">
<step><a href="#laravel_10_is_now_unsupported" /></step>
<step><a href="#removed_operations_upgrade_console_command" /></step>
<step><a href="#removed_operations_refresh_console_command" /></step>
<step><a href="#removed_operations_reset_console_command" /></step>
</procedure>

<procedure title="Low-Impact Changes" id="low_impact_changes">
Expand Down Expand Up @@ -57,6 +59,16 @@
It does not exist now.
</chapter>

<chapter title="Removed `operations:refresh` console command" id="removed_operations_refresh_console_command">
We decided to drop support for the <code>php artisan operations:refresh</code> console command.
It does not exist now.
</chapter>

<chapter title="Removed `operations:reset` console command" id="removed_operations_reset_console_command">
We decided to drop support for the <code>php artisan operations:reset</code> console command.
It does not exist now.
</chapter>

<chapter title="Strict typification" id="strict_typification">
<p>
A strict typification has been added to all the project files.
Expand Down
2 changes: 0 additions & 2 deletions docs/v.list
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

<var name="command_make" value="make:operation" />
<var name="command_run" value="operations" />
<var name="command_refresh" value="operations:refresh" />
<var name="command_reset" value="operations:reset" />
<var name="command_fresh" value="operations:fresh" />
<var name="command_rollback" value="operations:rollback" />
<var name="command_status" value="operations:status" />
Expand Down
28 changes: 0 additions & 28 deletions src/Console/RefreshCommand.php

This file was deleted.

28 changes: 0 additions & 28 deletions src/Console/ResetCommand.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/Constants/Names.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ class Names
public const Fresh = 'operations:fresh';
public const Install = 'operations:install';
public const Make = 'make:operation';
public const Refresh = 'operations:refresh';
public const Reset = 'operations:reset';
public const Rollback = 'operations:rollback';
public const Status = 'operations:status';
}
39 changes: 0 additions & 39 deletions src/Processors/RefreshProcessor.php

This file was deleted.

36 changes: 0 additions & 36 deletions src/Processors/ResetProcessor.php

This file was deleted.

2 changes: 0 additions & 2 deletions src/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ protected function registerCommands(): void
Console\FreshCommand::class,
Console\InstallCommand::class,
Console\MakeCommand::class,
Console\RefreshCommand::class,
Console\ResetCommand::class,
Console\RollbackCommand::class,
Console\StatusCommand::class,
]);
Expand Down
33 changes: 0 additions & 33 deletions tests/Commands/RefreshTest.php

This file was deleted.

34 changes: 0 additions & 34 deletions tests/Commands/ResetTest.php

This file was deleted.