Merge pull request 'set default 0 for outer status column in production order' (#1551) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 20s

Reviewed-on: #1551
This commit was merged in pull request #1551.
This commit is contained in:
2026-11-28 07:39:47 +00:00

View File

@@ -0,0 +1,31 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
$sql1 = <<<'SQL'
ALTER TABLE production_orders
ALTER COLUMN outer_status SET DEFAULT '0'
SQL;
DB::statement($sql1);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('production_orders', function (Blueprint $table) {
// //
// });
}
};