mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-08-07 09:23:07 +02:00
fix: collision in reversible migration revision ID
The reversible migration used revision ID a1b2c3d4e5f6, which was already taken by the rename_receiver_to_observer migration. Renamed to f1e2d3c4b5a6.
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
"""add reversible column to routes
|
||||
|
||||
Revision ID: a1b2c3d4e5f6
|
||||
Revision ID: f1e2d3c4b5a6
|
||||
Revises: 8f2a3c4d5e6f
|
||||
Create Date: 2026-07-13 01:00:00.000000+00:00
|
||||
|
||||
@@ -15,7 +15,7 @@ from typing import Sequence, Union
|
||||
import sqlalchemy as sa
|
||||
from alembic import op
|
||||
|
||||
revision: str = "a1b2c3d4e5f6"
|
||||
revision: str = "f1e2d3c4b5a6"
|
||||
down_revision: Union[str, None] = "8f2a3c4d5e6f"
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
@@ -89,7 +89,6 @@ function renderRouteCard(route, { isAdmin, onDelete, onEdit, onExpand, isExpande
|
||||
const badgeCls = qualityBadgeClass(q, route.enabled);
|
||||
const label = qualityLabel(q, route.enabled);
|
||||
const dot = qualityDot(q, route.enabled);
|
||||
const visBadge = html`<span class="badge badge-primary badge-sm">${route.visibility}</span>`;
|
||||
|
||||
const adminButtons = isAdmin
|
||||
? html`<div class="flex gap-2 mt-2">
|
||||
@@ -112,7 +111,6 @@ function renderRouteCard(route, { isAdmin, onDelete, onEdit, onExpand, isExpande
|
||||
<div class="flex-1 min-w-0">
|
||||
<h2 class="card-title flex items-center gap-2">
|
||||
${route.name}
|
||||
${visBadge}
|
||||
</h2>
|
||||
${route.description ? html`<p class="text-sm opacity-70 mt-1">${route.description}</p>` : nothing}
|
||||
</div>
|
||||
@@ -123,6 +121,9 @@ function renderRouteCard(route, { isAdmin, onDelete, onEdit, onExpand, isExpande
|
||||
</div>
|
||||
<div class="mt-2">${renderPathChips(route)}</div>
|
||||
${renderNumbersLine(route)}
|
||||
<div class="text-xs opacity-50 mt-0.5">
|
||||
${route.match_width}B \u00B7 ${(route.route_nodes || []).length} ${t('routes.nodes_count')}${route.max_hop_span ? html` \u00B7 ${t('routes.span')}: ${route.max_hop_span}` : nothing}
|
||||
</div>
|
||||
${adminButtons}
|
||||
${expandContent}
|
||||
</div>
|
||||
|
||||
@@ -335,6 +335,7 @@
|
||||
"span_label": "Max Span",
|
||||
"enabled_label": "Enabled",
|
||||
"reversible_label": "Reversible (match both directions)",
|
||||
"nodes_count": "nodes",
|
||||
"disabled": "Disabled",
|
||||
"not_evaluated": "Not yet evaluated",
|
||||
"diagnosis": "Diagnosis",
|
||||
|
||||
@@ -240,6 +240,7 @@
|
||||
"quality_unknown": "Onbekend",
|
||||
"disabled": "Uitgeschakeld",
|
||||
"reversible_label": "Omkeerbaar (beide richtingen)",
|
||||
"nodes_count": "knooppunten",
|
||||
"search_nodes_placeholder": "Zoek op naam of public key\u2026",
|
||||
"path_label": "Padknooppunten",
|
||||
"path_help": "Zoek op knooppuntnaam of public key en selecteer uit de resultaten. Minimaal 2 unieke knooppunten vereist.",
|
||||
|
||||
Reference in New Issue
Block a user