Total Complexity | 2 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class CreateSchedulesTable extends Migration |
||
17 | { |
||
18 | /** |
||
19 | * Run the migrations. |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function up() |
||
24 | { |
||
25 | Schema::create(Config::get('scheduler.schedules_table'), function (Blueprint $table) { |
||
26 | $table->increments('id'); |
||
27 | $table->string('model_type'); |
||
28 | $table->integer('model_id'); |
||
29 | $table->timestamp('start_at'); |
||
30 | $table->timestamp('end_at')->nullable(); |
||
31 | $table->integer('status')->nullable(); |
||
32 | $table->timestamps(); |
||
33 | $table->softDeletes(); |
||
34 | }); |
||
35 | } |
||
36 | |||
37 | /** |
||
38 | * Reverse the migrations. |
||
39 | * |
||
40 | * @return void |
||
41 | */ |
||
42 | public function down() |
||
45 | } |
||
46 | } |