title: Laravel SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value
body: <p>I'm working on a Laravel application for a while now, but when I run  <code>php artisan migrate</code> now, all out of a sudden I always get the error:</p>
  
  <pre><code>SQLSTATE[HY000]: General error: 1364 Field 'id' doesn't have a default value (SQL: insert into `migrations` (`migration`, `batch`) values (2019_06_05_080701_create_departments_table, 22))
  </code></pre>
  
  <p>and I have no clue why this happens since thsi never happened before. When I try to migrate a specific migration I get the same error, so what is going on here?</p>
  
  <p>The migration looks like this:</p>
  
  <pre><code>public function up()
  {
      Schema::create('departments', function (Blueprint $table) {
          $table-&gt;increments('id');
          $table-&gt;unsignedInteger('company_id');
          $table-&gt;string('name');
          $table-&gt;string('p_number')-&gt;nullable();
          $table-&gt;string('address')-&gt;nullable();
          $table-&gt;string('zipcode')-&gt;nullable();
          $table-&gt;string('city')-&gt;nullable();
          $table-&gt;string('contact_name')-&gt;nullable();
          $table-&gt;string('contact_email')-&gt;nullable();
          $table-&gt;string('contact_phone')-&gt;nullable();
  
          $table-&gt;timestamps();
      });
  }
  </code></pre>
  
  <p>Result of <code>SHOW COLUMNS FROM migrations;</code></p>
  
  <p><a href="https://i.stack.imgur.com/ohPC7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ohPC7.png" alt="enter image description here"></a></p>