Compare commits
2 Commits
d756177bd9
...
8efd64545d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8efd64545d | ||
|
|
f0e218d279 |
@@ -30,6 +30,7 @@ class InvoiceValidation extends Model
|
|||||||
'upload_status',
|
'upload_status',
|
||||||
'batch_number',
|
'batch_number',
|
||||||
'quantity',
|
'quantity',
|
||||||
|
'invoice_quantity',
|
||||||
'operator_id',
|
'operator_id',
|
||||||
'created_by',
|
'created_by',
|
||||||
'updated_by',
|
'updated_by',
|
||||||
|
|||||||
@@ -0,0 +1,29 @@
|
|||||||
|
<?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
|
||||||
|
{
|
||||||
|
DB::statement(<<<'SQL'
|
||||||
|
ALTER TABLE invoice_validations
|
||||||
|
ADD COLUMN invoice_quantity NUMERIC(10,3) NULL;
|
||||||
|
SQL);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Reverse the migrations.
|
||||||
|
*/
|
||||||
|
public function down(): void
|
||||||
|
{
|
||||||
|
// Schema::table('invoice_validations', function (Blueprint $table) {
|
||||||
|
// //
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user