Add conversion rate to products, prices, and save them while scraping.
All checks were successful
/ deploy-job (push) Successful in 1s
All checks were successful
/ deploy-job (push) Successful in 1s
This commit is contained in:
@@ -246,6 +246,16 @@ class Migrate extends Command
|
||||
$table->json('promotions')->nullable();
|
||||
});
|
||||
}
|
||||
if (!Capsule::schema()->hasColumn('prices', 'conversionRate')) {
|
||||
Capsule::schema()->table('prices', function (Blueprint $table) {
|
||||
$table->float('conversionRate')->nullable();
|
||||
});
|
||||
}
|
||||
if (!Capsule::schema()->hasColumn('products', 'conversionRate')) {
|
||||
Capsule::schema()->table('products', function (Blueprint $table) {
|
||||
$table->float('conversionRate')->nullable();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public function index(): void
|
||||
|
||||
Reference in New Issue
Block a user