Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration fails on MySQL 8.0.22 #3

Closed
mintbridge opened this issue May 6, 2021 · 3 comments
Closed

Migration fails on MySQL 8.0.22 #3

mintbridge opened this issue May 6, 2021 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@mintbridge
Copy link

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
Copy link
Author

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

@ksassnowski
Copy link
Collaborator

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

@ksassnowski ksassnowski self-assigned this May 6, 2021
@ksassnowski ksassnowski added the bug Something isn't working label May 6, 2021
@ksassnowski ksassnowski added this to the 0.2.0 milestone May 6, 2021
@ksassnowski
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants