| Conditions | 1 |
| Paths | 1 |
| Total Lines | 24 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create(config('myriad-data-store.tables.order_packages'), function (Blueprint $table) { |
||
| 17 | $table->id(); |
||
| 18 | $table->unsignedBigInteger('order_id'); |
||
| 19 | $table->unsignedBigInteger('order_package_type_id')->index(); |
||
| 20 | $table->unsignedBigInteger('title_id')->index(); |
||
| 21 | $table->string('start_issue')->index(); |
||
| 22 | $table->string('end_issue')->index(); |
||
| 23 | $table->string('status')->index(); |
||
| 24 | $table->string('stopcode')->index(); |
||
| 25 | $table->unsignedBigInteger('myriad_package_id')->nullable()->index(); |
||
| 26 | $table->unsignedBigInteger('remaining_issues')->index(); |
||
| 27 | $table->unsignedBigInteger('copies')->index(); |
||
| 28 | $table->json('details')->nullable(); |
||
| 29 | $table->date('end_issue_dn')->nullable()->index(); |
||
| 30 | $table->date('start_issue_dn')->nullable()->index(); |
||
| 31 | $table->timestamps(); |
||
| 32 | |||
| 33 | $table->foreign('order_id') |
||
| 34 | ->references('id') |
||
| 35 | ->on(config('myriad-data-store.tables.orders')) |
||
| 36 | ->onUpdate('cascade') |
||
| 37 | ->onDelete('cascade'); |
||
| 38 | }); |
||
| 51 |