How do I make doctrine support timestamp columns?
<p>I'm trying to apply the following migration:</p>

<pre><code>Schema::table('users', function (Blueprint $table) {
    $table-&gt;timestamp('created_at')-&gt;useCurrent()-&gt;change();
});
</code></pre>

<p>But <code>artisan</code> says:</p>

<pre><code>  [Doctrine\DBAL\DBALException]
  Unknown column type "timestamp" requested. Any Doctrine type that you use has to be registered with \Doctrine\DBAL
  \Types\Type::addType(). You can get a list of all the known types with \Doctrine\DBAL\Types\Type::getTypesMap(). I
  f this error occurs during database introspection then you might have forgot to register all database types for a
  Doctrine Type. Use AbstractPlatform#registerDoctrineTypeMapping() or have your custom types implement Type#getMapp
  edDatabaseTypes(). If the type name is empty you might have a problem with the cache or forgot some mapping inform
  ation.
</code></pre>

<p>When I try to install <code>mmerian/doctrine-timestamp</code> (<code>composer install mmerian/doctrine-timestamp</code>), <code>composer</code> says:</p>

<pre><code>  [InvalidArgumentException]
  Could not find package mmerian/doctrine-timestamp at any version for your minimum-stability (stable). Check the pa
  ckage spelling or your minimum-stability
</code></pre>

<p>What do I do?</p>

<p><strong>UPD</strong> With <code>composer require mmerian/doctrine-timestamp=dev-master</code>, I was able to install the package, then added <code>Type::addType('timestamp', 'DoctrineTimestamp\DBAL\Types\Timestamp');</code> before <code>Schema::table</code> statement, but now I've got the other error:</p>

<pre><code>  [Illuminate\Database\QueryException]
  SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'created_at' (SQL: ALTER TABLE u
  sers CHANGE created_at created_at INT DEFAULT 'CURRENT_TIMESTAMP' NOT NULL)
</code></pre>

<p><strong>UPD</strong> I checked again if it works with <code>mmerian/doctrine-timestamp</code>, since I added only first of the lines from the docs back then (or the doc was updated):</p>

<pre><code>Type::addType('timestamp', 'DoctrineTimestamp\DBAL\Types\Timestamp');                                          
DB::getDoctrineConnection()-&gt;getDatabasePlatform()-&gt;registerDoctrineTypeMapping('Timestamp', 'timestamp');
</code></pre>

<p>But it doesn't help as well. The migration succeeds, but the column definition doesn't change.</p>