feature/handle-promotions (#59)
Reviewed-on: #59 Co-authored-by: Krzysiej <[email protected]> Co-committed-by: Krzysiej <[email protected]>
This commit was merged in pull request #59.
This commit is contained in:
1 parent
6556ba0f88
commit
a545bfe2ab
6 files changed
+44
-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