ruạṛ
<?php /** * Invoice Ninja (https://invoiceninja.com). * * @link https://github.com/invoiceninja/invoiceninja source repository * * @copyright Copyright (c) 2022. Invoice Ninja LLC (https://invoiceninja.com) * * @license https://www.elastic.co/licensing/elastic-license */ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('companies', function (Blueprint $table) { $table->boolean('enable_applying_payments')->default(0); $table->boolean('track_inventory')->default(0); $table->integer('inventory_notification_threshold')->default(0); $table->boolean('stock_notification')->default(1); }); Schema::table('products', function (Blueprint $table) { $table->integer('in_stock_quantity')->default(0); $table->boolean('stock_notification')->default(1); $table->integer('stock_notification_threshold')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { // } };
cải xoăn