Skip to content

Comments

Add json Data Type & solve database name issues#42

Open
amrfayad wants to merge 1 commit intonWidart:masterfrom
amrfayad:master
Open

Add json Data Type & solve database name issues#42
amrfayad wants to merge 1 commit intonWidart:masterfrom
amrfayad:master

Conversation

@amrfayad
Copy link

@amrfayad amrfayad commented Nov 8, 2016

This error appeared to me :
[PDOException]
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your M
ySQL server version for the right syntax to use near 'desc WHERE Key_name != "PRIMARY"' at line 1

And The solution is to change line 27 in DBExporter to Be

return $pdo->query('SHOW INDEX FROM ' . $this->database . '.' . $table . ' WHERE Key_name != "PRIMARY"');

second issues Their is new data type in mysql is json DataType : and
This lines added in DbMigrations.php

case 'json' :
$method = 'json';
break;

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

Successfully merging this pull request may close these issues.

1 participant