From ecda90d5f21781f63fc8c5817126bef3beb533e8 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 29 Feb 2024 14:16:22 +1100 Subject: [PATCH] Fixes for migration logic --- .../2024_02_28_180250_add_steps_to_subscriptions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/database/migrations/2024_02_28_180250_add_steps_to_subscriptions.php b/database/migrations/2024_02_28_180250_add_steps_to_subscriptions.php index eba29dc3a3e7..031494233f57 100644 --- a/database/migrations/2024_02_28_180250_add_steps_to_subscriptions.php +++ b/database/migrations/2024_02_28_180250_add_steps_to_subscriptions.php @@ -10,7 +10,6 @@ * @license https://www.elastic.co/licensing/elastic-license */ -use App\Livewire\BillingPortal\Purchase; use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; @@ -19,10 +18,10 @@ return new class extends Migration { public function up(): void { Schema::table('subscriptions', function (Blueprint $table) { - $table->string('text')->nullable(); + $table->string('steps')->nullable(); }); - $steps = collect(Purchase::$dependencies) + $steps = collect(\App\Livewire\BillingPortal\Purchase::$dependencies) ->pluck('id') ->implode(',');