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

Migration job - command #83

Open
pionl opened this issue Feb 19, 2024 · 0 comments
Open

Migration job - command #83

pionl opened this issue Feb 19, 2024 · 0 comments

Comments

@pionl
Copy link
Contributor

pionl commented Feb 19, 2024

make:migration-job RemoveCommissionFromLastPaymentJob command that would make:

  • migration job (in database/migration-jobs)
final class RemoveCommissionFromLastPaymentJob extends AbstractUniqueJob
{
    public function uniqueId(): string
    {
        return 'remove-commission-from-last-payment';
    }

    public function handle(): void {
       
    }
}
  • migration make:migration remove_commissiom_from_last_payment_job
return new class extends Migration
{
    public function up(): void
    {
        dispatch(new RemoveCommissionFromLastPaymentJob());
    }

    public function down(): void
    {
       
    }
};
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

No branches or pull requests

1 participant