Files
Mycontent/soul-api/scripts/add-chapter-edition-fields.sql

10 lines
641 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.

-- ============================================================
-- 章节归属字段 - chapters 表(普通版/增值版)
-- 用途:添加文章时区分该章节属于普通版还是增值版
-- 执行mysql -u user -p database < soul-api/scripts/add-chapter-edition-fields.sql
-- ============================================================
-- 新增字段(若列已存在会报错,可忽略)
ALTER TABLE chapters ADD COLUMN edition_standard TINYINT(1) NULL DEFAULT 1 COMMENT '是否属于普通版1=是';
ALTER TABLE chapters ADD COLUMN edition_premium TINYINT(1) NULL DEFAULT 0 COMMENT '是否属于增值版1=是';