update perbaikan pos, return, dan report profit nlost
All checks were successful
All checks were successful
This commit is contained in:
@@ -0,0 +1,61 @@
|
||||
<?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('sale_details', function (Blueprint $table) {
|
||||
$table->longText('serial_numbers')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('purchase_details', function (Blueprint $table) {
|
||||
$table->longText('serial_numbers')->nullable();
|
||||
$table->double('price_without_tax')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('transfer_products', function (Blueprint $table) {
|
||||
$table->longText('serial_numbers')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('sale_return_details', function (Blueprint $table) {
|
||||
$table->longText('serial_numbers')->nullable();
|
||||
});
|
||||
|
||||
Schema::table('purchase_return_details', function (Blueprint $table) {
|
||||
$table->longText('serial_numbers')->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('sale_details', function (Blueprint $table) {
|
||||
$table->dropColumn('serial_numbers');
|
||||
});
|
||||
|
||||
Schema::table('purchase_details', function (Blueprint $table) {
|
||||
$table->dropColumn(['serial_numbers', 'price_without_tax']);
|
||||
});
|
||||
|
||||
Schema::table('transfer_products', function (Blueprint $table) {
|
||||
$table->dropColumn('serial_numbers');
|
||||
});
|
||||
|
||||
Schema::table('sale_return_details', function (Blueprint $table) {
|
||||
$table->dropColumn('serial_numbers');
|
||||
});
|
||||
|
||||
Schema::table('purchase_return_details', function (Blueprint $table) {
|
||||
$table->dropColumn('serial_numbers');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user