mirror of
https://github.com/flarum/core.git
synced 2025-08-11 19:04:29 +02:00
feat: Queue package manager commands (#3418)
* feat: Queue package manager commands * adjust tests * fix: force run whynot command synchronously * chore: maximize command output box's height * chore: more user instructions on background queue * feat: track command peak memory usage * feat: exit of CLI php version doesn't match web php version * chore: install deps * chore: format and typing workflow fix Signed-off-by: Sami Mazouz <ilyasmazouz@gmail.com>
This commit is contained in:
@@ -11,16 +11,18 @@ use Flarum\Database\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
return Migration::createTable(
|
||||
'generic_tasks',
|
||||
'package_manager_tasks',
|
||||
function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('status', 50)->nullable();
|
||||
$table->string('command', 50);
|
||||
$table->string('command_class')->nullable();
|
||||
$table->string('operation', 50);
|
||||
$table->string('command', 50)->nullable();
|
||||
$table->string('package', 100)->nullable();
|
||||
$table->mediumText('output');
|
||||
$table->dateTime('created_at');
|
||||
$table->dateTime('started_at')->nullable();
|
||||
$table->dateTime('finished_at')->nullable();
|
||||
$table->timestamp('created_at');
|
||||
$table->timestamp('started_at')->nullable();
|
||||
$table->timestamp('finished_at')->nullable();
|
||||
// Saved in KB
|
||||
$table->unsignedMediumInteger('peak_memory_used')->nullable();
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user