File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55namespace Hypervel \Database \Console \Migrations ;
66
77use Hypervel \Console \ConfirmableTrait ;
8+ use Hypervel \Console \Prohibitable ;
89use Hypervel \Database \Migrations \Migrator ;
910
1011class RollbackCommand extends BaseCommand
1112{
1213 use ConfirmableTrait;
14+ use Prohibitable;
1315
1416 protected ?string $ signature = 'migrate:rollback
1517 {--database= : The database connection to use}
@@ -33,7 +35,7 @@ public function __construct(
3335 */
3436 public function handle (): int
3537 {
36- if (! $ this ->confirmToProceed ()) {
38+ if ($ this -> isProhibited () || ! $ this ->confirmToProceed ()) {
3739 return self ::FAILURE ;
3840 }
3941
Original file line number Diff line number Diff line change 44
55namespace Hypervel \Database \Console ;
66
7- use Hyperf \Command \Concerns \Prohibitable ;
87use Hyperf \Contract \ConfigInterface ;
98use Hypervel \Console \Command ;
109use Hypervel \Console \ConfirmableTrait ;
10+ use Hypervel \Console \Prohibitable ;
1111use Hypervel \Database \ConnectionResolverInterface ;
1212use Hypervel \Database \Eloquent \Model ;
1313use Hypervel \Database \Seeder ;
You can’t perform that action at this time.
0 commit comments