-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error uploading excel in pallet delivery
- Loading branch information
Showing
8 changed files
with
113 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
database/migrations/2025_01_21_102236_add_new_pallets_states_to_fulfilment_customers.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
<?php | ||
|
||
/* | ||
* Author: Raul Perusquia <raul@inikoo.com> | ||
* Created: Tue, 21 Jan 2025 18:22:45 Malaysia Time, Kuala Lumpur, Malaysia | ||
* Copyright (c) 2025, Raul A Perusquia Flores | ||
*/ | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
return new class () extends Migration { | ||
public function up(): void | ||
{ | ||
Schema::table('fulfilment_customers', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return', 'number_pallets_state_request_return_in_process'); | ||
$table->unsignedInteger('number_pallets_state_request_return_submitted')->default(0); | ||
$table->unsignedInteger('number_pallets_state_request_return_confirmed')->default(0); | ||
}); | ||
|
||
Schema::table('fulfilment_stats', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return', 'number_pallets_state_request_return_in_process'); | ||
$table->unsignedInteger('number_pallets_state_request_return_submitted')->default(0); | ||
$table->unsignedInteger('number_pallets_state_request_return_confirmed')->default(0); | ||
}); | ||
|
||
Schema::table('organisation_fulfilment_stats', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return', 'number_pallets_state_request_return_in_process'); | ||
$table->unsignedInteger('number_pallets_state_request_return_submitted')->default(0); | ||
$table->unsignedInteger('number_pallets_state_request_return_confirmed')->default(0); | ||
}); | ||
|
||
Schema::table('group_fulfilment_stats', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return', 'number_pallets_state_request_return_in_process'); | ||
$table->unsignedInteger('number_pallets_state_request_return_submitted')->default(0); | ||
$table->unsignedInteger('number_pallets_state_request_return_confirmed')->default(0); | ||
}); | ||
|
||
Schema::table('warehouse_stats', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return', 'number_pallets_state_request_return_in_process'); | ||
$table->unsignedInteger('number_pallets_state_request_return_submitted')->default(0); | ||
$table->unsignedInteger('number_pallets_state_request_return_confirmed')->default(0); | ||
}); | ||
} | ||
|
||
public function down(): void | ||
{ | ||
Schema::table('fulfilment_customers', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return_in_process', 'number_pallets_state_request_return'); | ||
$table->dropColumn('number_pallets_state_request_return_submitted'); | ||
$table->dropColumn('number_pallets_state_request_return_confirmed'); | ||
}); | ||
|
||
Schema::table('fulfilment_stats', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return_in_process', 'number_pallets_state_request_return'); | ||
$table->dropColumn('number_pallets_state_request_return_submitted'); | ||
$table->dropColumn('number_pallets_state_request_return_confirmed'); | ||
}); | ||
|
||
Schema::table('organisation_fulfilment_stats', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return_in_process', 'number_pallets_state_request_return'); | ||
$table->dropColumn('number_pallets_state_request_return_submitted'); | ||
$table->dropColumn('number_pallets_state_request_return_confirmed'); | ||
}); | ||
|
||
Schema::table('group_fulfilment_stats', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return_in_process', 'number_pallets_state_request_return'); | ||
$table->dropColumn('number_pallets_state_request_return_submitted'); | ||
$table->dropColumn('number_pallets_state_request_return_confirmed'); | ||
}); | ||
|
||
Schema::table('warehouse_stats', function (Blueprint $table) { | ||
$table->renameColumn('number_pallets_state_request_return_in_process', 'number_pallets_state_request_return'); | ||
$table->dropColumn('number_pallets_state_request_return_submitted'); | ||
$table->dropColumn('number_pallets_state_request_return_confirmed'); | ||
}); | ||
} | ||
}; |