laravel-arcanist / arcanist

🧙‍♀️ Arcanist takes the pain out of building multi-step form wizards in Laravel.
https://laravel-arcanist.com
MIT License
405 stars 33 forks source link

Migration fails on MySQL 8.0.22 #3

Closed mintbridge closed 3 years ago

mintbridge commented 3 years ago

Publishing then running the migrations fails with the following error:

SQLSTATE[42000]: Syntax error or access violation: 1101 BLOB, TEXT, GEOMETRY or JSON column 'data' can't have a default value (SQL: create table `wizards` (`id` int unsigned not null auto_increment primary key, `class` varchar(255) not null, `data` json not null default '[]', `created_at` timestamp null, `updated_at` timestamp null) default character set utf8mb4 collate 'utf8mb4_unicode_ci')
mintbridge commented 3 years ago

removing the default in the migration works fine but not sure what impact that will have later

ksassnowski commented 3 years ago

Maybe I can remove the column default and instead add a default value inside the repository class

ksassnowski commented 3 years ago

This is fixed in version 0.2.0 (https://github.com/laravel-arcanist/arcanist/releases/tag/0.2.0)