title: How to add decimal column to existing table in Laravel 5.3 migration
body: <p>I have tried following 3 codes in a Laravel 5.3 project to add new decimal column to an existing table. But it's giving same error every time. </p>
  
  <pre><code>Schema::table('mileages', function (Blueprint $table) {
      $table-&gt;addColumn('decimal', 'cost');
  });
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Schema::table('mileages', function (Blueprint $table) {
      $table-&gt;addColumn('decimal', 'cost', ['default'=&gt;0]);
  });
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Schema::table('mileages', function (Blueprint $table) {
      $table-&gt;addColumn('decimal', 'cost', ['default'=&gt;'0,0']);
  });
  </code></pre>
  
  <p>The error was : </p>
  
  <pre><code>[Illuminate\Database\QueryException]                                                                                 
  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that  
  corresponds to your MariaDB server version for the right syntax to use near ' ) not null' at line 1 (SQL: alter table `mileages` add `cost` decimal (, ) not null) 
  </code></pre>
  
  <p>am i missing something ?</p>