Add promotions to database and scrape command

This commit is contained in:
2026-01-31 09:01:31 +01:00
parent 6556ba0f88
commit 5a3918c228
3 changed files with 7 additions and 0 deletions

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