Add promotions to database and scrape command
This commit is contained in:
1 parent
6556ba0f88
commit
5a3918c228
3 files changed
+7
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user