| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | if (!Schema::hasTable('med_form_field_conditions')) { |
||
| 17 | Schema::create('med_form_field_conditions', function (Blueprint $table) { |
||
| 18 | $table->id(); |
||
| 19 | $table->unsignedBigInteger('form_step_id')->nullable(); |
||
| 20 | $table->foreign('form_step_id')->references('id')->on('med_form_steps')->onDelete('set null'); |
||
| 21 | $table->unsignedBigInteger('form_field_id')->nullable(); |
||
| 22 | $table->foreign('form_field_id')->references('id')->on('med_form_fields')->onDelete('set null'); |
||
| 23 | $table->string('operation')->nullable(); |
||
| 24 | $table->string('eq')->nullable(); |
||
| 25 | $table->string('when')->nullable(); |
||
| 26 | $table->string('show')->nullable(); |
||
| 27 | $table->timestamps(); |
||
| 28 | }); |
||
| 41 |