Skip to content

Commit

Permalink
Added method to migration class
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmu committed Apr 15, 2024
1 parent 7d10e99 commit 09d1079
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions database/migrations/create_workflow_tables.php.stub
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

return new class() extends Migration {
public function up()
return new class extends Migration {
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create(config('venture.workflow_table'), function (Blueprint $table) {
$table->id();
Expand Down Expand Up @@ -43,4 +46,13 @@ return new class() extends Migration {
->onDelete('cascade');
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists(config('venture.jobs_table'));
Schema::dropIfExists(config('venture.workflow_table'));
}
};

0 comments on commit 09d1079

Please sign in to comment.