| Conditions | 1 |
| Paths | 1 |
| Total Lines | 34 |
| Code Lines | 30 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function up(): void |
||
| 11 | { |
||
| 12 | //Action when migrate up |
||
| 13 | $this->create('config', function (CreateTable $table) { |
||
| 14 | $table->integer('id') |
||
| 15 | ->autoincrement() |
||
| 16 | ->primary(); |
||
| 17 | $table->string('env') |
||
| 18 | ->description('The config environment') |
||
| 19 | ->index(); |
||
| 20 | $table->string('module') |
||
| 21 | ->description('The module') |
||
| 22 | ->index(); |
||
| 23 | $table->string('code') |
||
| 24 | ->description('The config code') |
||
| 25 | ->notNull() |
||
| 26 | ->index(); |
||
| 27 | $table->string('value') |
||
| 28 | ->description('The config value'); |
||
| 29 | $table->string('type') |
||
| 30 | ->description('The config data type'); |
||
| 31 | $table->text('comment') |
||
| 32 | ->description('The config description'); |
||
| 33 | $table->integer('status') |
||
| 34 | ->description('The config status') |
||
| 35 | ->defaultValue(0) |
||
| 36 | ->notNull(); |
||
| 37 | $table->datetime('created_at') |
||
| 38 | ->description('role created at') |
||
| 39 | ->notNull(); |
||
| 40 | $table->datetime('updated_at') |
||
| 41 | ->description('role updated at'); |
||
| 42 | |||
| 43 | $table->engine('INNODB'); |
||
| 44 | }); |
||
| 52 | } |