use jsonb column
This commit is contained in:
@@ -16,7 +16,7 @@ class CreateDataRowsTable extends Migration
|
|||||||
Schema::create('data_rows', function (Blueprint $table) {
|
Schema::create('data_rows', function (Blueprint $table) {
|
||||||
$table->increments('id');
|
$table->increments('id');
|
||||||
$table->unsignedInteger('data_table_id')->index();
|
$table->unsignedInteger('data_table_id')->index();
|
||||||
$table->longtext('data');
|
$table->jsonb('data');
|
||||||
|
|
||||||
$table->foreign('data_table_id')->references('id')->on('data_tables')
|
$table->foreign('data_table_id')->references('id')->on('data_tables')
|
||||||
->onDelete('cascade');
|
->onDelete('cascade');
|
||||||
|
|||||||
Reference in New Issue
Block a user