nWidart / laravel-modules

Module Management In Laravel
https://docs.laravelmodules.com
MIT License
5.56k stars 969 forks source link

Migration Invalid Priority #1816

Closed osama-98 closed 7 months ago

osama-98 commented 7 months ago

Hello, I'm facing an issue in priority in migrations only.

Schema::create('books', function (Blueprint $table) {
            $table->id();
            $table->json('name');
            $table->string('code')->unique();
            $table->foreignId('user_id')->nullable()->constrained('users')->nullOnDelete();
            $table->timestamps();
            $table->softDeletes();
        });

I have the priorities as below:

  1. UserModule: 1
  2. BookModule: 10

When I do php artisan module:migrate I expect the modules will be migrated as their priorities UserModule and then BookModule. However, it does not. It seems it is working alphabetically in migrations; Since, the BookModule worked before UserModule

prg-hussam commented 7 months ago

@dcblogdev

dcblogdev commented 7 months ago

We've pushed a release to address this.