cviebrock / sequel-pro-laravel-export

A Sequel Pro / Sequel Ace bundle to generate Laravel migration files from existing tables.
MIT License
921 stars 56 forks source link

default 'current_timestamp' evaluates as string #16

Closed ElForastero closed 7 years ago

ElForastero commented 7 years ago

It generates: $table->timestamp('created')->default('CURRENT_TIMESTAMP');

But needed: $table->timestamp('created')->default(\DB::raw('CURRENT_TIMESTAMP'));