2026-06-17_scm_shbq_add_tenant_id.sql 351 B

12345678910
  1. -- scm_shbq / scm_shbqhis 增加 tenant_id 列,支持多租户隔离
  2. -- 执行前请备份相关表
  3. -- 1. scm_shbq 加列
  4. ALTER TABLE scm_shbq
  5. ADD COLUMN tenant_id BIGINT NULL DEFAULT NULL AFTER jhdhh;
  6. -- 2. scm_shbqhis 加列(归档表结构保持一致)
  7. ALTER TABLE scm_shbqhis
  8. ADD COLUMN tenant_id BIGINT NULL DEFAULT NULL AFTER jhdhh;