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

Fix #16 CURRENT_TIMESTAMP default value #17

Closed ElForastero closed 7 years ago

ElForastero commented 7 years ago

While setting default value as CURRENT_TIMESTAMP, DB::raw() must be used. Otherwise the value will be accepted as string 'CURRENT_TIMESTAMP'.

cviebrock commented 7 years ago

Thanks!