cviebrock / sequel-pro-laravel-export

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

error with input type "SET" #34

Closed brada1703 closed 3 years ago

brada1703 commented 4 years ago

Hi there,

I noticed an error when exporting a table from Sequel Pro. For any inputs with the type "SET", I would get the following:

$table->UNKNOWN:set('flavours')->default('strawberry');

Desired output:

$table->set('flavours', ['strawberry', 'vanilla'])->default('strawberry');

I am using Laravel 7, Sequel Pro Build 5446.

(Finally, thanks so much for developing this Colin! You've saved me a ton of time. 😊 )

cviebrock commented 4 years ago

Sorry for the delay.

I'll get a fix out for this as soon as possible!

cviebrock commented 3 years ago

I lied: "as soon as possible" apparently means 4-6 months. 😄

This should be fixed now in the latest release (1.8.1). Sorry for the delay ... really, this time!