From 8fb5d30513c3bdf680ca351b3fa6e61c19d2f33f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Thu, 12 Jul 2018 20:51:40 +0200 Subject: [PATCH] use jsonb column --- .../migrations/2018_07_08_193640_create_data_rows_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2018_07_08_193640_create_data_rows_table.php b/database/migrations/2018_07_08_193640_create_data_rows_table.php index fcf7747..fd4958b 100644 --- a/database/migrations/2018_07_08_193640_create_data_rows_table.php +++ b/database/migrations/2018_07_08_193640_create_data_rows_table.php @@ -16,7 +16,7 @@ class CreateDataRowsTable extends Migration Schema::create('data_rows', function (Blueprint $table) { $table->increments('id'); $table->unsignedInteger('data_table_id')->index(); - $table->longtext('data'); + $table->jsonb('data'); $table->foreign('data_table_id')->references('id')->on('data_tables') ->onDelete('cascade');