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

12 lines
878 B
SQL
Raw Permalink 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.
-- ============================================================
-- P1.5: cross_combination 杂交组合 —— 杂交类型/母本组合/组配理由/育种阶段(规格 §4 line 559
-- ------------------------------------------------------------
-- 幂等。bre_cross_combination 表已由 bre_tables.sql 建好。
-- ============================================================
ALTER TABLE bre_cross_combination ADD COLUMN IF NOT EXISTS cross_type varchar(16);
ALTER TABLE bre_cross_combination ADD COLUMN IF NOT EXISTS parent_combination_id integer REFERENCES bre_cross_combination(id);
CREATE INDEX IF NOT EXISTS ix_bre_cross_combination_parent_combination_id ON bre_cross_combination (parent_combination_id);
ALTER TABLE bre_cross_combination ADD COLUMN IF NOT EXISTS reason varchar(512);
ALTER TABLE bre_cross_combination ADD COLUMN IF NOT EXISTS stage varchar(32);