第一次提交

This commit is contained in:
wangjiming
2026-07-27 09:12:47 +08:00
commit b4ff5db17b
579 changed files with 48768 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
-- 003: tenants 补充 quota / retention_policy 列(接口契约 13.1 需要)
DO $$
BEGIN
IF NOT EXISTS (
SELECT 1 FROM information_schema.columns
WHERE table_name = 'tenants' AND column_name = 'quota'
) THEN
ALTER TABLE tenants ADD COLUMN quota TEXT;
END IF;
IF NOT EXISTS (
SELECT 1 FROM information_schema.columns
WHERE table_name = 'tenants' AND column_name = 'retention_policy_id'
) THEN
ALTER TABLE tenants ADD COLUMN retention_policy_id TEXT;
END IF;
END
$$;