| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function up() |
||
| 19 | { |
||
| 20 | Schema::create('datastore_datastore', function (Blueprint $table) { |
||
| 21 | $table->bigIncrements('id'); |
||
| 22 | $table->unsignedBigInteger('datastore_id')->nullable(); |
||
| 23 | $table->unsignedBigInteger('datastore2_id')->nullable(); |
||
| 24 | |||
| 25 | $table->unique(['datastore2_id', 'datastore_id']); |
||
| 26 | $table->index('datastore_id'); |
||
| 27 | $table->index('datastore2_id'); |
||
| 28 | |||
| 29 | |||
| 30 | $table->foreign('datastore_id')->references('id')->on('datastore')->onDelete('CASCADE')->onUpdate('RESTRICT'); |
||
| 31 | $table->foreign('datastore2_id')->references('id')->on('datastore')->onDelete('CASCADE')->onUpdate('RESTRICT'); |
||
| 32 | |||
| 51 |