Comments (10)
JSON format support MariaDB 10.2
from platform.
But he also clearly says that not all migrations have passed.
I need some time to reproduce the problem on MariaDB
from platform.
Hi, can you say more information
What software do you use? And what version? (PHP, Laravel, MySQL or PostgreSQL)
from platform.
Yes, Laravel 5.4 (last version, fresh installation), PHP 7.1.2, MariaDB 10.1.21
from platform.
Ok, so you have json in migrations.
Thanks, I try upgrading MariaDB 👍
from platform.
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.
You made
php artisan vendor:publish
&
php artisan migrate
?
At these stages there were no problems?
from platform.
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.
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)
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.
So, this only support MariaDB 10.3 (alpha) / MySQL 5.7 and future versions of both.
from platform.
Related Issues (20)
- Parameter is not being passed to Screen's method HOT 2
- Select filter resets after apply others HOT 1
- Mix - Orchid.js File takes too much load time HOT 1
- Orchid disable Laravel 11 events autodiscovery
- IconComponent issue with 14.22.0 HOT 3
- Add query parameters on filter
- Closures for fromModel
- Cannot delete a selected item in the Relation field HOT 1
- Button on screen with pagination enabled throws an exception: method not found
- Icon cuts HOT 1
- Icon not found on notification page HOT 1
- How to dynamically auto fill input textbox fields with select option using php and mysql HOT 1
- В Laravel 11 displayAppend не работает, как описано в примере HOT 2
- Autofilling dependant textfields through searching by ID using php And Mysql
- Border feature for Legend HOT 1
- Input value mix with other model after reload browser in edit screen HOT 2
- AttachmentController checkPermission issue
- Overwriting title to null displays value 1 HOT 1
- Select arrow
- Can't upload image from smartphone HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from platform.