Files
tougao/sql/reference_check_result_alter_positions.sql
2026-05-26 18:01:44 +08:00

8 lines
666 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.
-- 为预览标记增加原文位置字段([70-73] 展开为 4 条时共用 cite_tag_* / text_*
ALTER TABLE `t_reference_check_result`
ADD COLUMN `cite_tag_start` int(11) NOT NULL DEFAULT 0 COMMENT 'blue标签起始字节偏移' AFTER `reference_raw`,
ADD COLUMN `cite_tag_end` int(11) NOT NULL DEFAULT 0 COMMENT 'blue标签结束字节偏移' AFTER `cite_tag_start`,
ADD COLUMN `text_start` int(11) NOT NULL DEFAULT 0 COMMENT '引用句起始字节偏移' AFTER `cite_tag_end`,
ADD COLUMN `text_end` int(11) NOT NULL DEFAULT 0 COMMENT '引用句结束字节偏移' AFTER `text_start`,
ADD KEY `idx_am_cite` (`am_id`,`cite_tag_start`,`reference_no`);