Add cost/price/supplierid to service, update service report to show supplerid and overridden costs (if any)
This commit is contained in:
30
database/migrations/2025_05_16_135847_add_cost.php
Normal file
30
database/migrations/2025_05_16_135847_add_cost.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?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
|
||||
{
|
||||
Schema::table('services', function (Blueprint $table) {
|
||||
$table->float('cost')->nullable();
|
||||
$table->string('supplierid')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('service_broadband', function (Blueprint $table) {
|
||||
$table->dropColumn('cost');
|
||||
$table->dropColumn('supplierid');
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user