<svg width="100%" viewBox="0 0 880 200" role="img" xmlns="http://www.w3.org/2000/svg">
  <title>Database migrations are manual</title>
  <desc>You add a SQL file under supabase/migrations/, then paste it into Supabase Studio (or psql) for it to take effect; nothing auto-applies.</desc>
  <style>
    text{font-family:"Anthropic Sans",-apple-system,system-ui,"Segoe UI",sans-serif}
    .t{font-size:14px;font-weight:500;text-anchor:middle;dominant-baseline:central}
    .s{font-size:12px;text-anchor:middle;dominant-baseline:central}
    .lbl{font-size:11px;fill:#9c9a92;text-anchor:middle}
    rect{stroke-width:.5}
    .neutral{fill:#444441;stroke:#b4b2a9} .nt{fill:#d3d1c7} .ns{fill:#b4b2a9}
    .orange{fill:#712b13;stroke:#f0997b}  .ot{fill:#f5c4b3} .os{fill:#f0997b}
    .teal{fill:#085041;stroke:#5dcaa5}    .tt{fill:#9fe1cb} .ts{fill:#5dcaa5}
    .arrow{fill:none;stroke:#9c9a92;stroke-width:1.5}
    .arrow-warn{fill:none;stroke:#d97757;stroke-width:1.5}
  </style>
  <defs>
    <marker id="a" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
      <path d="M2 1L8 5L2 9" fill="none" stroke="context-stroke" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
    </marker>
  </defs>

  <rect class="neutral" x="20"  y="80" width="220" height="60" rx="8"/>
  <text class="t nt" x="130" y="104">add migration</text>
  <text class="s ns" x="130" y="122">supabase/migrations/000N_*.sql</text>

  <rect class="orange" x="280" y="80" width="280" height="60" rx="8"/>
  <text class="t ot" x="420" y="104">paste into Supabase Studio</text>
  <text class="s os" x="420" y="122">(or psql "$SUPABASE_DB_URL" -f …)</text>

  <rect class="teal" x="600" y="80" width="260" height="60" rx="8"/>
  <text class="t tt" x="730" y="104">schema live</text>
  <text class="s ts" x="730" y="122">migrations are idempotent</text>

  <path class="arrow"      d="M 240 110 L 278 110" marker-end="url(#a)"/>
  <path class="arrow"      d="M 560 110 L 598 110" marker-end="url(#a)"/>
  <text class="lbl"        x="420" y="158" fill="#d97757">forget this step → UndefinedTableError 500 after deploy</text>
</svg>
