bladex-update-sqlserver-2.8.2~2.9.0.sql 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. -- -----------------------------------
  2. -- 新增lemon平台所需的组件地址字段
  3. -- -----------------------------------
  4. ALTER TABLE [dbo].[blade_menu] ADD [component] varchar(255)
  5. GO
  6. EXEC sp_addextendedproperty
  7. 'MS_Description', N'组件地址',
  8. 'SCHEMA', N'dbo',
  9. 'TABLE', N'blade_menu',
  10. 'COLUMN', N'component';
  11. -- -----------------------------------
  12. -- 参数管理新增账号错误锁定次数配置
  13. -- -----------------------------------
  14. INSERT INTO [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, N'账号错误锁定次数', N'account.failCount', N'5', N'锁定次数', 1123598821738675201, 1123598813738675201, N'2021-12-01 12:00:00', 1123598821738675201, N'2021-12-01 12:00:00', 1, 0);
  15. -- -----------------------------------
  16. -- 创建租户产品表
  17. -- -----------------------------------
  18. CREATE TABLE [dbo].[blade_tenant_package] (
  19. [id] bigint NOT NULL,
  20. [package_name] nvarchar(50),
  21. [menu_id] nvarchar(3000),
  22. [remark] nvarchar(255),
  23. [create_user] bigint NULL,
  24. [create_dept] bigint NULL,
  25. [create_time] datetime2(0) NULL,
  26. [update_user] bigint NULL,
  27. [update_time] datetime2(0) NULL,
  28. [status] int NULL,
  29. [is_deleted] int NULL,
  30. PRIMARY KEY CLUSTERED ([id])
  31. WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)
  32. )
  33. GO
  34. EXEC sp_addextendedproperty
  35. 'MS_Description', N'主键',
  36. 'SCHEMA', N'dbo',
  37. 'TABLE', N'blade_tenant_package',
  38. 'COLUMN', N'id'
  39. GO
  40. EXEC sp_addextendedproperty
  41. 'MS_Description', N'产品包名',
  42. 'SCHEMA', N'dbo',
  43. 'TABLE', N'blade_tenant_package',
  44. 'COLUMN', N'package_name'
  45. GO
  46. EXEC sp_addextendedproperty
  47. 'MS_Description', N'菜单ID',
  48. 'SCHEMA', N'dbo',
  49. 'TABLE', N'blade_tenant_package',
  50. 'COLUMN', N'menu_id'
  51. GO
  52. EXEC sp_addextendedproperty
  53. 'MS_Description', N'备注',
  54. 'SCHEMA', N'dbo',
  55. 'TABLE', N'blade_tenant_package',
  56. 'COLUMN', N'remark'
  57. GO
  58. EXEC sp_addextendedproperty
  59. 'MS_Description', N'创建人',
  60. 'SCHEMA', N'dbo',
  61. 'TABLE', N'blade_tenant_package',
  62. 'COLUMN', N'create_user'
  63. GO
  64. EXEC sp_addextendedproperty
  65. 'MS_Description', N'创建部门',
  66. 'SCHEMA', N'dbo',
  67. 'TABLE', N'blade_tenant_package',
  68. 'COLUMN', N'create_dept'
  69. GO
  70. EXEC sp_addextendedproperty
  71. 'MS_Description', N'创建时间',
  72. 'SCHEMA', N'dbo',
  73. 'TABLE', N'blade_tenant_package',
  74. 'COLUMN', N'create_time'
  75. GO
  76. EXEC sp_addextendedproperty
  77. 'MS_Description', N'修改人',
  78. 'SCHEMA', N'dbo',
  79. 'TABLE', N'blade_tenant_package',
  80. 'COLUMN', N'update_user'
  81. GO
  82. EXEC sp_addextendedproperty
  83. 'MS_Description', N'修改时间',
  84. 'SCHEMA', N'dbo',
  85. 'TABLE', N'blade_tenant_package',
  86. 'COLUMN', N'update_time'
  87. GO
  88. EXEC sp_addextendedproperty
  89. 'MS_Description', N'状态',
  90. 'SCHEMA', N'dbo',
  91. 'TABLE', N'blade_tenant_package',
  92. 'COLUMN', N'status'
  93. GO
  94. EXEC sp_addextendedproperty
  95. 'MS_Description', N'是否已删除',
  96. 'SCHEMA', N'dbo',
  97. 'TABLE', N'blade_tenant_package',
  98. 'COLUMN', N'is_deleted'
  99. GO
  100. EXEC sp_addextendedproperty
  101. 'MS_Description', N'租户产品表',
  102. 'SCHEMA', N'dbo',
  103. 'TABLE', N'blade_tenant_package';
  104. -- -----------------------------------
  105. -- 租户表增加产品包ID字段
  106. -- -----------------------------------
  107. ALTER TABLE [dbo].[blade_tenant] ADD [package_id] int
  108. GO
  109. EXEC sp_addextendedproperty
  110. 'MS_Description', N'租户产品ID',
  111. 'SCHEMA', N'dbo',
  112. 'TABLE', N'blade_tenant',
  113. 'COLUMN', N'package_id';