Fix legacy RC hosting orders not appearing after app extraction.
Deploy Ladill Hosting / deploy (push) Successful in 23s

Import RC service orders in hosting:import, map platform_id on legacy models, and wire legacy order manage links to hosting.legacy.show.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-06-06 20:31:29 +00:00
co-authored by Cursor
parent 8205d55d1e
commit d532f5b206
6 changed files with 53 additions and 2 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('rc_service_orders') && ! Schema::hasColumn('rc_service_orders', 'platform_id')) {
Schema::table('rc_service_orders', function (Blueprint $table): void {
$table->unsignedBigInteger('platform_id')->nullable()->unique()->after('id');
});
}
}
public function down(): void
{
if (Schema::hasTable('rc_service_orders') && Schema::hasColumn('rc_service_orders', 'platform_id')) {
Schema::table('rc_service_orders', function (Blueprint $table): void {
$table->dropColumn('platform_id');
});
}
}
};