Files
dpb/backend/sql/weld_combining_design.sql
T
34047007@qq.com b95053c52c init: 初始化 dpb 桃育种系统代码库
前后端 + 后端 FastAPI 全量源码、部署脚本与文档。
2026-08-06 00:17:49 +08:00

16 lines
1.2 KiB
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.
-- ============================================================
-- 配合力交配设计:design_type
-- ------------------------------------------------------------
-- 幂等。bre_cross_combination / bre_combining_ability 均已建好。
-- 统计严谨:配合力 GCA/SCA 算法与 ANOVA 自由度随交配设计不同,
-- 全双列(Griffing) / 部分双列 / line×tester(NCII) / NCIII 不能混算。
-- design_type: full_diallel(完全双列) / partial_diallel(部分双列) /
-- line_tester(line×tester NCII) / nciii(NCIII 测交)
-- 组合级记录"该组合属于哪种设计";配合力结果级记录"分析时采用的设计"(快照)。
-- ============================================================
ALTER TABLE bre_cross_combination ADD COLUMN IF NOT EXISTS design_type varchar(32) NOT NULL DEFAULT 'full_diallel';
ALTER TABLE bre_combining_ability ADD COLUMN IF NOT EXISTS design_type varchar(32);
COMMENT ON COLUMN bre_cross_combination.design_type IS '交配设计(full_diallel完全双列/partial_diallel部分双列/line_tester line×tester NCII/nciii NCIII测交)';
COMMENT ON COLUMN bre_combining_ability.design_type IS '分析采用交配设计(结果快照,回放可复现)';