| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up(): void |
||
| 17 | { |
||
| 18 | Schema::create(config('rinvex.attributes.tables.attribute_text_values'), function (Blueprint $table) { |
||
| 19 | // Columns |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->text('content'); |
||
| 22 | $table->integer('attribute_id')->unsigned(); |
||
| 23 | $table->integer('entity_id')->unsigned(); |
||
| 24 | $table->string('entity_type'); |
||
| 25 | $table->timestamps(); |
||
| 26 | |||
| 27 | // Indexes |
||
| 28 | $table->foreign('attribute_id')->references('id')->on(config('rinvex.attributes.tables.attributes')) |
||
| 29 | ->onDelete('cascade')->onUpdate('cascade'); |
||
| 30 | }); |
||
| 31 | } |
||
| 32 | |||
| 43 |