| Total Complexity | 3 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | class CreateLogistiqTrackingUpdatesTable extends Migration |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | private $table; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * CreateLogistiqTrackingUpdatesTable constructor. |
||
| 20 | */ |
||
| 21 | public function __construct() |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Run the migrations. |
||
| 33 | */ |
||
| 34 | public function up() |
||
| 35 | { |
||
| 36 | Schema::create($this->table, function (Blueprint $table) { |
||
| 37 | $table->bigIncrements('id'); |
||
| 38 | $table->string(TrackingUpdate::COLUMN_TRACKABLE_IDENTIFIER); |
||
| 39 | $table->string(TrackingUpdate::COLUMN_TRACKABLE_TYPE); |
||
| 40 | $table->string(TrackingUpdate::COLUMN_STATUS_IDENTIFIER); |
||
| 41 | $table->timestamps(); |
||
| 42 | }); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Reverse the migrations. |
||
| 47 | */ |
||
| 48 | public function down() |
||
| 51 | } |
||
| 52 | } |
||
| 53 |