-- 会议模块口径调整：
-- 1) 去除 sub_project_name 字段（会议归属以 project_id 为准）
-- 2) 补充地点/预算字段注释

SET @c := (
    SELECT COUNT(1)
    FROM information_schema.COLUMNS
    WHERE TABLE_SCHEMA = DATABASE()
      AND TABLE_NAME = 'meeting'
      AND COLUMN_NAME = 'sub_project_name'
);
SET @sql := IF(@c > 0, 'ALTER TABLE meeting DROP COLUMN sub_project_name', 'SELECT 1');
PREPARE stmt FROM @sql;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;

ALTER TABLE meeting
    MODIFY COLUMN location VARCHAR(255) NULL COMMENT '会议地点（线上/线下/线上+线下）',
    MODIFY COLUMN budget_cent BIGINT NOT NULL COMMENT '会议预算（分）';
