| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 18 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 12 | public function up(): void  | 
            ||
| 13 |     { | 
            ||
| 14 | //Action when migrate up  | 
            ||
| 15 |         $this->create('product_categories', function (CreateTable $table) { | 
            ||
| 16 |             $table->integer('id') | 
            ||
| 17 | ->autoincrement()  | 
            ||
| 18 | ->primary();  | 
            ||
| 19 | |||
| 20 |             $table->string('name') | 
            ||
| 21 |                  ->description('The category name') | 
            ||
| 22 | ->notNull();  | 
            ||
| 23 | |||
| 24 |             $table->string('description') | 
            ||
| 25 |                  ->description('The category description'); | 
            ||
| 26 | |||
| 27 | $table->timestamps();  | 
            ||
| 28 | |||
| 29 |             $table->engine('INNODB'); | 
            ||
| 30 | });  | 
            ||
| 38 | }  |