From 06fe14a54101e37cbaefcdbac11fb1bcb8963067 Mon Sep 17 00:00:00 2001 From: Mior Muhammad Zaki Date: Wed, 28 Aug 2024 18:47:08 +0800 Subject: [PATCH] wip Signed-off-by: Mior Muhammad Zaki --- bin/sync | 9 +++++ ...000_testbench_create_job_batches_table.php | 35 ------------------- 2 files changed, 9 insertions(+), 35 deletions(-) delete mode 100644 laravel/migrations/queue/0001_01_01_000000_testbench_create_job_batches_table.php diff --git a/bin/sync b/bin/sync index 5f695d2e..661fbb28 100755 --- a/bin/sync +++ b/bin/sync @@ -14,6 +14,15 @@ $version = '11.x-dev'; $files->delete("{$workingPath}/laravel/.env"); $files->deleteDirectory("{$workingPath}/skeleton"); +if ($files->isDirectory("{$workingPath}/laravel/migrations")) { + $files->deleteDirectory("{$workingPath}/laravel/migrations"); +} + +$files->ensureDirectoryExists("{$workingPath}/laravel/migrations"); +$files->ensureDirectoryExists("{$workingPath}/laravel/migrations/cache"); +$files->ensureDirectoryExists("{$workingPath}/laravel/migrations/notifications"); +$files->ensureDirectoryExists("{$workingPath}/laravel/migrations/queue"); +$files->ensureDirectoryExists("{$workingPath}/laravel/migrations/session"); $files->copy("{$workingPath}/vendor/orchestra/testbench-core/laravel/bootstrap/app.php", "{$workingPath}/laravel/bootstrap/app.php"); $files->copy("{$workingPath}/vendor/orchestra/testbench-core/laravel/server.php", "{$workingPath}/laravel/server.php"); diff --git a/laravel/migrations/queue/0001_01_01_000000_testbench_create_job_batches_table.php b/laravel/migrations/queue/0001_01_01_000000_testbench_create_job_batches_table.php deleted file mode 100644 index 50e38c20..00000000 --- a/laravel/migrations/queue/0001_01_01_000000_testbench_create_job_batches_table.php +++ /dev/null @@ -1,35 +0,0 @@ -string('id')->primary(); - $table->string('name'); - $table->integer('total_jobs'); - $table->integer('pending_jobs'); - $table->integer('failed_jobs'); - $table->longText('failed_job_ids'); - $table->mediumText('options')->nullable(); - $table->integer('cancelled_at')->nullable(); - $table->integer('created_at'); - $table->integer('finished_at')->nullable(); - }); - } - - /** - * Reverse the migrations. - */ - public function down(): void - { - Schema::dropIfExists('job_batches'); - } -};