increments('id'); $table->integer('schedule_id')->unsigned(); $table->string('schedule_name'); $table->string('status'); $table->integer('deleted_files')->nullable()->unsigned(); $table->integer('deleted_folders')->nullable()->unsigned(); $table->integer('modified_files')->nullable()->unsigned(); $table->integer('examined_files')->nullable()->unsigned(); $table->integer('opened_files')->nullable()->unsigned(); $table->integer('added_files')->nullable()->unsigned(); $table->bigInteger('size_of_modified_files')->nullable()->unsigned(); $table->bigInteger('size_of_added_files')->nullable()->unsigned(); $table->bigInteger('size_of_examined_files')->nullable()->unsigned(); $table->bigInteger('size_of_opened_files')->nullable()->unsigned(); $table->integer('not_processed_files')->nullable()->unsigned(); $table->integer('added_folders')->nullable()->unsigned(); $table->integer('too_large_files')->nullable()->unsigned(); $table->integer('files_with_error')->nullable()->unsigned(); $table->integer('modified_folders')->nullable()->unsigned(); $table->integer('modified_symlinks')->nullable()->unsigned(); $table->integer('added_symlinks')->nullable()->unsigned(); $table->integer('deleted_symlinks')->nullable()->unsigned(); $table->string('partial_backup')->nullable(); $table->string('dryrun')->nullable(); $table->string('main_operation')->nullable(); $table->timestamp('started_at')->nullable(); $table->timestamp('finished_at')->nullable(); $table->string('duration')->nullable(); $table->string('version')->nullable(); $table->timestamps(); }); Schema::table('backups', function (Blueprint $table) { $table->foreign('schedule_id')->references('id')->on('schedules')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('backups'); } }