title: Database gets stuck in migration in Laravel
body: <p>Ok, so this is the problem.</p>
  
  <p>I have a package (deb for debian) that is installing my software in a Linux box. The steps are:</p>
  
  <ol>
  <li>Install the dependencies needed</li>
  <li>Copy the PHP source code</li>
  <li>Install mysql</li>
  <li>Creates a post-install script that will run after the first reboot.</li>
  <li>The post install do 
  
  <ul>
  <li>Creation of user for the database</li>
  <li><code>composer install</code></li>
  <li><code>php artisan migrate --force --step</code></li>
  </ul></li>
  </ol>
  
  <p>The migrations are like this:</p>
  
  <pre><code>// migration1.php
  public function up()
  {
      Schema::create('table', function(Blueprint $table) {
          $table-&gt;string('field');
      });
  }
  
  // migration2.php
  public function up()
  {
      Schema::table('table', function(Blueprint $table) {
          $table-&gt;boolean('another_field');
      });
  }
  </code></pre>
  
  <p>The problem I have is, the database gets stuck on the second migration. It does not show any error, it does not complain, simply it does not work... What is even weird, is if I run the migrations not in the post-inst script, but after <code>ssh</code>ing into the box, it runs ok: no problems, no stuck...</p>
  
  <p>Any ideas?</p>