odf_new/docs/v1.0.2.1/migration.sql
zpc 5b0de386f1
All checks were successful
continuous-integration/drone/push Build is passing
feat(odf-v1021): Add optical box rack type support with dual-column layout
- Add migration script to introduce rack_type field (0=ODF, 1=optical box)
- Add RackType, LeftPortsCount, RightPortsCount properties to OdfRacks model and DTOs
- Add rack type selector and port count inputs to OdfRackForm component
- Display rack type labels in OdfRacks management table
- Add rack type badges to uni-app rack list cards
- Implement dual-column layout for optical box type in rack detail page with left/right port sections
- Add optical box port naming format (A-1, A-2, etc.) with row-based labeling
- Add visual distinction with background colors (left: #E3F2FD, right: #FFF3E0) and center divider
- Update import/export DTOs to support rack type and optical box port naming
- Mark all v1.0.2.1 tasks as completed
2026-04-02 16:40:09 +08:00

7 lines
211 B
SQL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

-- ODF v1.0.2.1 数据库迁移脚本
-- 新增光交箱机架类型支持
-- SQL Server 语法
ALTER TABLE odf_racks ADD rack_type INT NOT NULL DEFAULT 0;
-- rack_type: 机架类型0=ODF机架, 1=光交箱