unis_crm/sql/upgrade_opportunity_is_poc_...

17 lines
425 B
PL/PgSQL
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

begin;
set search_path to public;
-- 商机表补充是否 POC 测试项目字段
-- 说明:
-- 1. 为 crm_opportunity 增加 is_poc 字段。
-- 2. 字段类型为 boolean默认 false兼容历史数据。
-- 3. 可重复执行。
alter table if exists crm_opportunity
add column if not exists is_poc boolean not null default false;
comment on column crm_opportunity.is_poc is '是否POC测试项目';
commit;