title: Laravel 9 Migration ForeginKey not created
body: <p>I have some problem with the Laravel 9 migrations. After i run the &quot;php artisan migrate&quot; command every table created with the indexes. So everthings just fine except the foregin key. I don't have any idea why, maybe someone know what causes the problem or have a solotion. Thank you all!</p>
  <p>10.4.22-MariaDB <br>
  InnoDB <br>
  Apache/2.4.52 (Win64) OpenSSL/1.1.1m PHP/8.1.2 <br>
  phpMyAdmin: 5.11.1</p>
  <p>My migrations:</p>
  <pre><code>Schema::create('supplier_orders', function (Blueprint $table) {
      $table-&gt;increments('Id');
      $table-&gt;unsignedBigInteger('Warehouse', false)-&gt;nullable(false);
      $table-&gt;unsignedBigInteger('Supplier', false)-&gt;nullable(false);
      $table-&gt;dateTime('StartedAt')-&gt;nullable(false)-&gt;useCurrent();
      $table-&gt;dateTime('CompletedAt')-&gt;default(null);
      $table-&gt;string('PrimeVoucherNumber', 100)-&gt;nullable(false);
      $table-&gt;index(['CompletedAt', 'Warehouse', 'Supplier'], 'CompletedWarehouseSupplier');
  });
  
  Schema::create('supplier_order_details', function (Blueprint $table) {
      $table-&gt;increments('Id');
      $table-&gt;unsignedInteger('SupplierOrder', false)-&gt;nullable(false);
      $table-&gt;unsignedBigInteger('Employee', false)-&gt;nullable(false);
      $table-&gt;unsignedBigInteger('Product', false)-&gt;nullable(false);
      $table-&gt;unsignedDecimal('Quantity', 18, 4)-&gt;nullable(false);
      $table-&gt;index(['SupplierOrder', 'Employee', 'Product'], 'OrderEmployeeProduct')-&gt;unique();
      $table-&gt;index(['Product', 'SupplierOrder', 'Quantity'], 'ProductOrder');
      });
  
  Schema::table('supplier_order_details', function (Blueprint $table) {
      $table-&gt;foreign('SupplierOrder', 'FK_SupplierOrderDetail_SupplierOrder')-&gt;references('Id')-&gt;on('supplier_orders')-&gt;onDelete('CASCADE')-&gt;onUpdate('NO ACTION');
  });
  </code></pre>