unsignedInteger('partner_id')->nullable()->after('system_slug') ->comment('Partner ID from partner_data or other partner tables'); $table->string('partner_name')->nullable()->after('partner_id') ->comment('Partner name for display purposes'); // Add index for filtering $table->index(['system_slug', 'partner_id'], 'idx_system_partner_exec'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('odoo_executions', function (Blueprint $table) { $table->dropIndex('idx_system_partner_exec'); $table->dropColumn(['partner_id', 'partner_name']); }); } }