Skip to content

Commit 6c043c5

Browse files
Merge pull request #209 from TheDragonCode/7.x
Removed `operations:refresh` and `operations:reset` console commands
2 parents c2765ef + 67c5cd8 commit 6c043c5

13 files changed

+13
-242
lines changed

docs/do.tree

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<toc-element toc-title="Prologue">
1010
<toc-element topic="introduction.topic" />
1111
<toc-element toc-title="Upgrade Guide">
12-
<toc-element topic="upgrade-7.topic" toc-title="Upgrade to 7.x" accepts-web-file-names-ref="upgrade_guide" />
12+
<toc-element topic="upgrade-7.topic" toc-title="Upgrade to 7.x" />
1313
<toc-element topic="upgrade-6.topic" toc-title="Upgrade to 6.x" />
1414
<toc-element topic="upgrade-5.topic" toc-title="Upgrade to 5.x" />
1515
<toc-element topic="upgrade-4.topic" toc-title="Upgrade to 4.x" />

docs/redirection-rules.xml

-4
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99
<description>Created after removal of "Running Operations" from Deploy Operations</description>
1010
<accepts>guide/basic.html</accepts>
1111
</rule>
12-
<rule id="upgrade_guide">
13-
<description>Created after removal of "Running Operations" from Deploy Operations</description>
14-
<accepts>upgrade-guide/</accepts>
15-
</rule>
1612
<rule id="guide_running">
1713
<description>Created after removal of "Running Operations" from Deploy Operations</description>
1814
<accepts>guide/running.html</accepts>

docs/topics/rolling-back-operations.topic

-33
Original file line numberDiff line numberDiff line change
@@ -31,45 +31,12 @@
3131
%artisan% %command_rollback% --step=5
3232
</code-block>
3333

34-
<p>
35-
The <code>%command_reset%</code> command will roll back all of your application's operations:
36-
</p>
37-
38-
<code-block lang="bash">
39-
%artisan% %command_reset%
40-
</code-block>
41-
4234
<p>
4335
For example:
4436
</p>
4537

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

48-
<chapter
49-
title="Roll Back &amp; Operation Using A Single Command"
50-
id="roll_back_amp_operation_using_a_single_command"
51-
>
52-
<p>
53-
The
54-
<code>%command_refresh%</code> command will roll back all of your operations and then execute the operations command.
55-
This command effectively re-creates your entire database:
56-
</p>
57-
58-
<code-block lang="bash">
59-
%artisan% %command_refresh%
60-
</code-block>
61-
62-
<p>
63-
You may roll back and re-run a limited number of operations by providing the <code>step</code> option to the
64-
<code>%command_refresh%</code> command.
65-
For example, the following command will roll back and re-run the last five operations:
66-
</p>
67-
68-
<code-block lang="bash">
69-
%artisan% %command_refresh% --step=5
70-
</code-block>
71-
</chapter>
72-
7340
<chapter title="Drop All &amp; Rerun Operations" id="drop_all_amp_rerun_operations">
7441
<p>
7542
The

docs/topics/upgrade-7.topic

+12
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
<procedure title="Minor-Impact Changes" id="minor_impact_changes">
2222
<step><a href="#laravel_10_is_now_unsupported" /></step>
2323
<step><a href="#removed_operations_upgrade_console_command" /></step>
24+
<step><a href="#removed_operations_refresh_console_command" /></step>
25+
<step><a href="#removed_operations_reset_console_command" /></step>
2426
</procedure>
2527

2628
<procedure title="Low-Impact Changes" id="low_impact_changes">
@@ -57,6 +59,16 @@
5759
It does not exist now.
5860
</chapter>
5961

62+
<chapter title="Removed `operations:refresh` console command" id="removed_operations_refresh_console_command">
63+
We decided to drop support for the <code>php artisan operations:refresh</code> console command.
64+
It does not exist now.
65+
</chapter>
66+
67+
<chapter title="Removed `operations:reset` console command" id="removed_operations_reset_console_command">
68+
We decided to drop support for the <code>php artisan operations:reset</code> console command.
69+
It does not exist now.
70+
</chapter>
71+
6072
<chapter title="Strict typification" id="strict_typification">
6173
<p>
6274
A strict typification has been added to all the project files.

docs/v.list

-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
<var name="command_make" value="make:operation" />
1010
<var name="command_run" value="operations" />
11-
<var name="command_refresh" value="operations:refresh" />
12-
<var name="command_reset" value="operations:reset" />
1311
<var name="command_fresh" value="operations:fresh" />
1412
<var name="command_rollback" value="operations:rollback" />
1513
<var name="command_status" value="operations:status" />

src/Console/RefreshCommand.php

-28
This file was deleted.

src/Console/ResetCommand.php

-28
This file was deleted.

src/Constants/Names.php

-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ class Names
1010
public const Fresh = 'operations:fresh';
1111
public const Install = 'operations:install';
1212
public const Make = 'make:operation';
13-
public const Refresh = 'operations:refresh';
14-
public const Reset = 'operations:reset';
1513
public const Rollback = 'operations:rollback';
1614
public const Status = 'operations:status';
1715
}

src/Processors/RefreshProcessor.php

-39
This file was deleted.

src/Processors/ResetProcessor.php

-36
This file was deleted.

src/ServiceProvider.php

-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ protected function registerCommands(): void
4444
Console\FreshCommand::class,
4545
Console\InstallCommand::class,
4646
Console\MakeCommand::class,
47-
Console\RefreshCommand::class,
48-
Console\ResetCommand::class,
4947
Console\RollbackCommand::class,
5048
Console\StatusCommand::class,
5149
]);

tests/Commands/RefreshTest.php

-33
This file was deleted.

tests/Commands/ResetTest.php

-34
This file was deleted.

0 commit comments

Comments
 (0)