Files
rust-ipam/migrations/sqlite/0007_add_network_name.sql
mathieu d9ee121fbb feat(networks): add name field to networks
- Migration 0007: ALTER TABLE networks ADD COLUMN name TEXT NOT NULL DEFAULT ''
- Network model, repository, and API updated to include name
- Networks page: name input in the add form, Name column as first column in table
- Delete modal now shows "Name (CIDR)" for clarity
- Hosts page: network dropdowns now show network name instead of CIDR
- Seeds updated with names (LAN, DMZ, Corporate, VPN)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-16 01:38:40 +02:00

4 lines
184 B
SQL

-- Add a human-readable name to networks.
-- DEFAULT '' allows the migration to run on databases that already have rows.
ALTER TABLE networks ADD COLUMN name TEXT NOT NULL DEFAULT '';