title: Error while migrating from Laravel tinker console (sqlite)
body: <p>Consider</p>
  
  <pre><code>laravel new bug
  </code></pre>
  
  <p>Then adding in .env</p>
  
  <pre><code>DB_CONNECTION=sqlite
  DB_DATABASE=/home/me/Code/bug/storage/database.sqlite
  </code></pre>
  
  <p>creating database</p>
  
  <pre><code>touch /home/me/Code/bug/storage/database.sqlite
  </code></pre>
  
  <p>migrating</p>
  
  <pre><code>php artisan migrate &amp;&amp; php artisan migrate:fresh
  </code></pre>
  
  <p>Now trying to migrate programmatically in tinker</p>
  
  <pre><code>php artisan tinker
  &gt;&gt; Artisan::call('migrate');
  </code></pre>
  
  <p>First time resulting in => 0 (as expected ?) But second time:</p>
  
  <pre><code>&gt;&gt;&gt; Artisan::call('migrate:fresh')
  </code></pre>
  
  <blockquote>
    <p>Illuminate\Database\QueryException with message 'SQLSTATE[HY000]:
    General error: 17 database schema has changed (SQL: select * from
    sqlite_master where type = 'table' and name = migrations)'</p>
    
    <blockquote>
      <blockquote>
        <p>Artisan::call('migrate')
        Third time:</p>
      </blockquote>
    </blockquote>
    
    <p>Symfony\Component\Console\Exception\CommandNotFoundException with
    message 'There are no commands defined in the "migrate" namespace.'</p>
  </blockquote>
  
  <p>Any ideas whats going on here? Can you reproduce?</p>
  
  <p><hr>
  Update using postgres. The second time running Artisan::call('migrate:fresh') I get:</p>
  
  <blockquote>
    <p>Symfony\Component\Console\Exception\CommandNotFoundException with
    message 'There are no commands defined in the "migrate" namespace.'</p>
  </blockquote>
  
  <hr>
  
  <p>UPDATE 2: Issue filed here: <s><a href="https://github.com/laravel/framework/issues/22997" rel="nofollow noreferrer">https://github.com/laravel/framework/issues/22997</a></s>
  <a href="https://github.com/laravel/tinker/issues/37" rel="nofollow noreferrer">https://github.com/laravel/tinker/issues/37</a></p>