diff --git a/database/migrations/create_workflow_tables.php.stub b/database/migrations/create_workflow_tables.php.stub index 625ca0b..11ef092 100644 --- a/database/migrations/create_workflow_tables.php.stub +++ b/database/migrations/create_workflow_tables.php.stub @@ -5,7 +5,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migration; return new class() extends Migration { - public function up() + public function up(): void { Schema::create(config('venture.workflow_table'), function (Blueprint $table) { $table->id(); @@ -43,4 +43,10 @@ return new class() extends Migration { ->onDelete('cascade'); }); } + + public function down(): void + { + Schema::dropIfExists(config('venture.jobs_table')); + Schema::dropIfExists(config('venture.workflow_table')); + } };