| Total Complexity | 2 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class CreateCmsApikeyTable extends Migration { |
||
| 7 | |||
| 8 | /** |
||
| 9 | * Run the migrations. |
||
| 10 | * |
||
| 11 | * @return void |
||
| 12 | */ |
||
| 13 | public function up() |
||
| 14 | { |
||
| 15 | Schema::create('cms_apikey', function(Blueprint $table) |
||
| 16 | { |
||
| 17 | $table->increments('id'); |
||
| 18 | $table->string('secretkey')->nullable(); |
||
| 19 | $table->integer('hit')->nullable(); |
||
| 20 | $table->string('status', 25)->default('active'); |
||
| 21 | $table->timestamps(); |
||
| 22 | }); |
||
| 23 | } |
||
| 24 | |||
| 25 | |||
| 26 | /** |
||
| 27 | * Reverse the migrations. |
||
| 28 | * |
||
| 29 | * @return void |
||
| 30 | */ |
||
| 31 | public function down() |
||
| 34 | } |
||
| 35 | |||
| 37 |