Cron monitoring
This commit is contained in:
		
							
								
								
									
										34
									
								
								database/migrations/2020_09_17_145238_create_tasks_table.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								database/migrations/2020_09_17_145238_create_tasks_table.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| <?php | ||||
|  | ||||
| use Illuminate\Database\Migrations\Migration; | ||||
| use Illuminate\Database\Schema\Blueprint; | ||||
| use Illuminate\Support\Facades\Schema; | ||||
|  | ||||
| class CreateTasksTable extends Migration | ||||
| { | ||||
|     /** | ||||
|      * Run the migrations. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function up() | ||||
|     { | ||||
|         Schema::create('tasks', function (Blueprint $table) { | ||||
|             $table->id(); | ||||
|             $table->string('name'); | ||||
|             $table->string('cron'); | ||||
|             $table->dateTime('last_ping_at'); | ||||
|             $table->timestamps(); | ||||
|         }); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Reverse the migrations. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function down() | ||||
|     { | ||||
|         Schema::dropIfExists('tasks'); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user