bladex-update-postgresql-2.8.2~2.9.0.sql 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. -- -----------------------------------
  2. -- 新增lemon平台所需的组件地址字段
  3. -- -----------------------------------
  4. ALTER TABLE "public"."blade_menu"
  5. ADD COLUMN "component" varchar(255);
  6. COMMENT ON COLUMN "public"."blade_menu"."component" IS '组件地址';
  7. -- -----------------------------------
  8. -- 参数管理新增账号错误锁定次数配置
  9. -- -----------------------------------
  10. INSERT INTO "public"."blade_param"("id", "param_name", "param_key", "param_value", "remark", "create_user", "create_dept", "create_time", "update_user", "update_time", "status", "is_deleted") VALUES (1123598819738675203, '账号错误锁定次数', 'account.failCount', '5', '锁定次数', 1123598821738675201, 1123598813738675201, '2021-12-01 12:00:00', 1123598821738675201, '2021-12-01 12:00:00', 1, 0);
  11. -- -----------------------------------
  12. -- 创建租户产品表
  13. -- -----------------------------------
  14. CREATE TABLE "public"."blade_tenant_package" (
  15. "id" int8 NOT NULL,
  16. "package_name" varchar(50),
  17. "menu_id" varchar(3000),
  18. "remark" varchar(255),
  19. "create_user" int8,
  20. "create_dept" int8,
  21. "create_time" timestamp(6),
  22. "update_user" int8,
  23. "update_time" timestamp(6),
  24. "status" int4,
  25. "is_deleted" int4,
  26. PRIMARY KEY ("id")
  27. )
  28. ;
  29. COMMENT ON COLUMN "public"."blade_tenant_package"."id" IS '主键';
  30. COMMENT ON COLUMN "public"."blade_tenant_package"."package_name" IS '产品包名';
  31. COMMENT ON COLUMN "public"."blade_tenant_package"."menu_id" IS '菜单ID';
  32. COMMENT ON COLUMN "public"."blade_tenant_package"."remark" IS '备注';
  33. COMMENT ON COLUMN "public"."blade_tenant_package"."create_user" IS '创建人';
  34. COMMENT ON COLUMN "public"."blade_tenant_package"."create_dept" IS '创建部门';
  35. COMMENT ON COLUMN "public"."blade_tenant_package"."create_time" IS '创建时间';
  36. COMMENT ON COLUMN "public"."blade_tenant_package"."update_user" IS '修改人';
  37. COMMENT ON COLUMN "public"."blade_tenant_package"."update_time" IS '修改时间';
  38. COMMENT ON COLUMN "public"."blade_tenant_package"."status" IS '状态';
  39. COMMENT ON COLUMN "public"."blade_tenant_package"."is_deleted" IS '是否已删除';
  40. COMMENT ON TABLE "public"."blade_tenant_package" IS '租户产品表';
  41. -- -----------------------------------
  42. -- 租户表增加产品包ID字段
  43. -- -----------------------------------
  44. ALTER TABLE "public"."blade_tenant"
  45. ADD COLUMN "package_id" int8;
  46. COMMENT ON COLUMN "public"."blade_tenant"."package_id" IS '产品包ID';