Code Monkey home page Code Monkey logo

Comments (10)

tabuna avatar tabuna commented on September 3, 2024 1

JSON format support MariaDB 10.2

from platform.

tabuna avatar tabuna commented on September 3, 2024 1

But he also clearly says that not all migrations have passed.
I need some time to reproduce the problem on MariaDB

from platform.

tabuna avatar tabuna commented on September 3, 2024

Hi, can you say more information
What software do you use? And what version? (PHP, Laravel, MySQL or PostgreSQL)

from platform.

d8vjork avatar d8vjork commented on September 3, 2024

Yes, Laravel 5.4 (last version, fresh installation), PHP 7.1.2, MariaDB 10.1.21

from platform.

d8vjork avatar d8vjork commented on September 3, 2024

Ok, so you have json in migrations.

Thanks, I try upgrading MariaDB 👍

from platform.

d8vjork avatar d8vjork commented on September 3, 2024

Ok, sorry, but still can't because migrations of Orchid doesn't migrate (the user schema that I can see in my database is the user from Laravel fresh installation).

So the make:admin command return the query exception

from platform.

tabuna avatar tabuna commented on September 3, 2024

You made
php artisan vendor:publish &
php artisan migrate ?
At these stages there were no problems?

from platform.

d8vjork avatar d8vjork commented on September 3, 2024

Yes, I change the query exception for make:admin command and this is the result:

https://gist.github.com/d8vjork/71264a2f0b909ac17c16ec0379662602

The solution: I change the json/jsonb to text from some migration files and run php artisan migrate (and yes, I upgrade MariaDB to 10.2 but it continues having problems with JSON from Laravel).

Edit: And having no issues from Roles editor, maybe I recommend change JSON/JSONB to TEXT datatype for MySQL/MariaDB compatibility.

from platform.

tabuna avatar tabuna commented on September 3, 2024

I was able to reproduce the problem and get an error.
But, as it turned out the JSON type is still not supported in MariaDB.

  [Illuminate\Database\QueryException]                                                                                                                                                                                                                              
  SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'json not null, `created_at` timestamp null, `updated_at` timest  
  amp null) default' at line 1 (SQL: create table `roles` (`id` int unsigned not null auto_increment primary key, `slug` varchar(255) not null, `name` varchar(255) not null, `permissions` json not null, `created_at` timestamp null, `updated_at` timestamp nul  
  l) default character set utf8 collate utf8_unicode_ci)                                                                                                                                                                                                            

Link 1
Link 2
Link 3

I can not change the values from json to text or blob, since I suppose to use select and updates in the json

from platform.

d8vjork avatar d8vjork commented on September 3, 2024

So, this only support MariaDB 10.3 (alpha) / MySQL 5.7 and future versions of both.

from platform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.