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

datatype conversion error when migrating #21

Closed
ketchank opened this issue Sep 25, 2018 · 3 comments
Closed

datatype conversion error when migrating #21

ketchank opened this issue Sep 25, 2018 · 3 comments

Comments

@ketchank
Copy link

i've been trying to do

php artisan migrate

but i got this error

image

@fulopattila122
Copy link
Member

Due to the json field type requirement MySQL 5.7 or higher or PostgreSQL is required.
MariaDB is not supported.

This requirement comes from Spatie's Media Library

@ketchank
Copy link
Author

I did find that article while doing some research on google

As a newbie,
What should I do exactly at this point ?

Sorry for disturbing

fulopattila122 added a commit to vanilophp/docs that referenced this issue Sep 25, 2018
fulopattila122 added a commit to vanilophp/docs that referenced this issue Sep 25, 2018
Adds clarification for vanilophp/framework#21

(cherry picked from commit f4fa109)
@fulopattila122
Copy link
Member

Use one of the supported database engines: Either MySQL 5.7 or PostgreSQL.


This is completely out of Vanilo's scope, but I can give you some suggestions.

My guess is that you are either using MySQL 5.5/5.6 or MariaDB.

You have many options, like:

  • In case you have MySQL, you need to upgrade it to version 5.7.
  • If you have MariaDB, you can replace it with MySQL 5.7.
  • It's also possible to keep your current MariaDB/MySQL installation and add MySQL 5.7 besides them, but on a different port (also change in config/db.php accordingly)
  • Keep your existing MySQL installation and install Postgres.

If you haven't used Postgres before, and don't have much experience with databases I would suggest to replace you current MariaDB/MySQL installation with MySQL 5.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants