| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up() |
||
| 17 | { |
||
| 18 | Schema::create(config('rinvex.forms.tables.form_responses'), function (Blueprint $table) { |
||
| 19 | // Columns |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->string('unique_identifier')->nullable(); |
||
| 22 | $table->{$this->jsonable()}('content'); |
||
| 23 | $table->integer('form_id')->unsigned(); |
||
| 24 | $table->nullableMorphs('user'); |
||
| 25 | $table->timestamps(); |
||
| 26 | $table->softDeletes(); |
||
| 27 | |||
| 28 | // Indexes |
||
| 29 | $table->foreign('form_id')->references('id')->on(config('rinvex.forms.tables.forms')) |
||
| 30 | ->onDelete('cascade')->onUpdate('cascade'); |
||
| 31 | }); |
||
| 32 | } |
||
| 33 | |||
| 58 |