V20261116_01__ai_oss_owner.sql 675 B

123456789
  1. -- ============================================================================
  2. -- ops 迁移版本:V20261116_01
  3. -- 源脚本:sql/ai_oss_owner.sql
  4. -- 说明:由 deploy/ops/db.sh 按版本顺序执行;已执行过的文件请勿再修改。
  5. -- ============================================================================
  6. -- 存量库迁移:ai_oss 增加上传人主键(附件注册时校验归属)
  7. -- 已在 sql/ai_oss.sql 的全量建表脚本中包含;本脚本仅用于已存在 ai_oss 表的环境。
  8. alter table ai_oss add column if not exists create_by bigint;
  9. comment on column ai_oss.create_by is '上传用户主键(附件注册时校验归属)';