create type enum_datasource_type as enum ('原数据库', '备份数据库'); alter table t_data_source alter column mount_path drop not null; alter table t_data_source add type enum_datasource_type; comment on column t_data_source.type is '数据源类型';