peixue-dev/Archive/[一次性]添加growth_record表supplement字段.sql

12 lines
398 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.

-- 为 growth_record 表添加 supplement 字段(管理师补充内容)
-- 执行时间2026-01-26
ALTER TABLE `growth_record`
ADD COLUMN `supplement` TEXT COMMENT '管理师补充内容' AFTER `content`;
-- 验证字段是否添加成功
SELECT COLUMN_NAME, COLUMN_TYPE, COLUMN_COMMENT
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'growth_record'
AND COLUMN_NAME = 'supplement';