Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 11 |
Createcronstabledbdigital | |
0.00% |
0 / 1 |
|
0.00% |
0 / 2 |
6 | |
0.00% |
0 / 11 |
up | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 9 |
|||
down | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 2 |
1 | <?php |
2 | |
3 | use Illuminate\Support\Facades\Schema; |
4 | use Illuminate\Database\Schema\Blueprint; |
5 | use Illuminate\Database\Migrations\Migration; |
6 | use Illuminate\Support\Facades\DB; |
7 | |
8 | class Createcronstabledbdigital extends Migration |
9 | { |
10 | |
11 | /** |
12 | * Run the migrations. |
13 | * |
14 | * @return void |
15 | */ |
16 | public function up() |
17 | { |
18 | Schema::create('crons', function (Blueprint $table) { |
19 | $table->increments('id'); |
20 | $table->string('name'); |
21 | $table->boolean('active')->default(true); |
22 | $table->boolean('running')->default(false); |
23 | $table->string('prod')->nullable(); |
24 | $table->timestamps(); |
25 | }); |
26 | } |
27 | |
28 | /** |
29 | * Reverse the migrations. |
30 | * |
31 | * @return void |
32 | */ |
33 | public function down() |
34 | { |
35 | Schema::dropIfExists('crons'); |
36 | } |
37 | } |