Add promotions to database and scrape command

This commit is contained in:
krzysiej committed 2026-01-31 09:01:31 +01:00
1 parent 6556ba0f88
commit 5a3918c228
3 files changed
+7

No files matched your search

+5
View File
@@ -181,6 +181,11 @@ class Migrate extends Command
$table->integer('stock')->nullable();
});
}
if (!Capsule::schema()->hasColumn('products', 'promotions')) {
Capsule::schema()->table('products', function (Blueprint $table) {
$table->json('promotions')->nullable();
});
}
}
public function index(): void