diff --git a/database/migrations/2015_06_26_213716_create_asset_maintenances_table.php b/database/migrations/2015_06_26_213716_create_asset_maintenances_table.php index f328bb61f8..6838dde854 100644 --- a/database/migrations/2015_06_26_213716_create_asset_maintenances_table.php +++ b/database/migrations/2015_06_26_213716_create_asset_maintenances_table.php @@ -2,7 +2,7 @@ use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; - use Illuminate\Support\Facades\Lang; + use Illuminate\Support\Facades\Schema; class CreateAssetMaintenancesTable extends Migration { @@ -40,9 +40,9 @@ protected function getEnumFields() { return [ - trans('admin/asset_maintenances/general.maintenance'), - trans('admin/asset_maintenances/general.repair'), - trans('admin/asset_maintenances/general.upgrade'), + trans('admin/maintenances/general.maintenance'), + trans('admin/maintenances/general.repair'), + trans('admin/maintenances/general.upgrade'), ]; } diff --git a/database/migrations/2025_08_10_111553_rename_title_to_name_on_asset_maintenances.php b/database/migrations/2025_08_10_111553_rename_title_to_name_on_asset_maintenances.php new file mode 100644 index 0000000000..424157e987 --- /dev/null +++ b/database/migrations/2025_08_10_111553_rename_title_to_name_on_asset_maintenances.php @@ -0,0 +1,28 @@ +renameColumn('title', 'name'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('asset_maintenances', function (Blueprint $table) { + $table->renameColumn('name', 'title'); + }); + } +}; diff --git a/database/migrations/2025_08_10_113444_rename_asset_maintenances_to_maintenances.php b/database/migrations/2025_08_10_113444_rename_asset_maintenances_to_maintenances.php new file mode 100644 index 0000000000..f4cc30e803 --- /dev/null +++ b/database/migrations/2025_08_10_113444_rename_asset_maintenances_to_maintenances.php @@ -0,0 +1,24 @@ +update(['item_type' => 'App\\Models\\Maintenance']); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + + } +};