mardi 15 mars 2016

Getting error in migration, "Syntax error or access violation:1064"

I'm trying to insert a json string in to my Laravel 5.2 migration and I get an error, "Syntax error or access violation:1064".

I currently using MySQL as my database.

This is from my migration file:

 Schema::create('profile', function (Blueprint $table) {
        $table->increments('id');
        $table->json('settings')->nullable();
        $table->timestamps();
    });

Can i somehow make this happen with my MySQL database or do i need to switch it up with MongoDB?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire