bladex-update-oracle-2.8.2~2.9.0.sql 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. -- -----------------------------------
  2. -- 新增lemon平台所需的组件地址字段
  3. -- -----------------------------------
  4. ALTER TABLE "BLADEX"."BLADE_MENU"
  5. ADD ("COMPONENT" VARCHAR2(255) );
  6. COMMENT ON COLUMN "BLADEX"."BLADE_MENU"."COMPONENT" IS '组件地址';
  7. -- -----------------------------------
  8. -- 参数管理新增账号错误锁定次数配置
  9. -- -----------------------------------
  10. INSERT INTO "BLADEX"."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', TO_DATE('2021-12-01 12:00:00', 'SYYYY-MM-DD HH24:MI:SS'), '1123598821738675201', TO_DATE('2021-12-01 12:00:00', 'SYYYY-MM-DD HH24:MI:SS'), '1', '0');
  11. -- -----------------------------------
  12. -- 创建租户产品表
  13. -- -----------------------------------
  14. CREATE TABLE "BLADEX"."BLADE_TENANT_PACKAGE" (
  15. "ID" NUMBER(20) NOT NULL ,
  16. "PACKAGE_NAME" NVARCHAR2(50) ,
  17. "MENU_ID" NVARCHAR2(2000) ,
  18. "REMARK" NVARCHAR2(255) ,
  19. "CREATE_USER" NUMBER(20) ,
  20. "CREATE_DEPT" NUMBER(20) ,
  21. "CREATE_TIME" DATE ,
  22. "UPDATE_USER" NUMBER(20) ,
  23. "UPDATE_TIME" DATE ,
  24. "STATUS" NUMBER(11) ,
  25. "IS_DELETED" NUMBER(11) ,
  26. PRIMARY KEY ("ID")
  27. )
  28. ;
  29. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."ID" IS '主键';
  30. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."PACKAGE_NAME" IS '产品包名';
  31. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."MENU_ID" IS '菜单ID';
  32. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."REMARK" IS '备注';
  33. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."CREATE_USER" IS '创建人';
  34. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."CREATE_DEPT" IS '创建部门';
  35. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."CREATE_TIME" IS '创建时间';
  36. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."UPDATE_USER" IS '修改人';
  37. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."UPDATE_TIME" IS '修改时间';
  38. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."STATUS" IS '状态';
  39. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT_PACKAGE"."IS_DELETED" IS '是否已删除';
  40. COMMENT ON TABLE "BLADEX"."BLADE_TENANT_PACKAGE" IS '租户产品表';
  41. -- -----------------------------------
  42. -- 租户表增加产品包ID字段
  43. -- -----------------------------------
  44. ALTER TABLE "BLADEX"."BLADE_TENANT"
  45. ADD ("PACKAGE_ID" NUMBER(20) );
  46. COMMENT ON COLUMN "BLADEX"."BLADE_TENANT"."PACKAGE_ID" IS '产品包ID';