diff --git a/config/db/V1.2__resource_mount_addcol.sql b/config/db/V1.2__resource_mount_addcol.sql index df5655ea..5b545a1c 100644 --- a/config/db/V1.2__resource_mount_addcol.sql +++ b/config/db/V1.2__resource_mount_addcol.sql @@ -1,2 +1,2 @@ -ALTER TABLE `share_platform`.`t_resource_mount_apply` ADD COLUMN `resource_dto` json NULL COMMENT '挂载资源对象'; -UPDATE `share_platform`.`t_resource_mount_apply` SET resource_dto = parameter_content; \ No newline at end of file +ALTER TABLE `t_resource_mount_apply` ADD COLUMN `resource_dto` json NULL COMMENT '挂载资源对象'; +UPDATE `t_resource_mount_apply` SET resource_dto = parameter_content; \ No newline at end of file diff --git a/config/db/V1.3__resource_attr_index.sql b/config/db/V1.3__resource_attr_index.sql index e59a336a..e7d7a54d 100644 --- a/config/db/V1.3__resource_attr_index.sql +++ b/config/db/V1.3__resource_attr_index.sql @@ -1,3 +1,3 @@ -ALTER TABLE `share_platform`.`tb_data_attr` +ALTER TABLE `tb_data_attr` ADD INDEX `resource_id`(`data_resource_id`), ADD FULLTEXT INDEX `attr_value_`(`attr_type`, `attr_value`); \ No newline at end of file diff --git a/config/db/V1.4__resource_add_infolist.sql b/config/db/V1.4__resource_add_infolist.sql index 7ea8d219..323bad65 100644 --- a/config/db/V1.4__resource_add_infolist.sql +++ b/config/db/V1.4__resource_add_infolist.sql @@ -1 +1 @@ -ALTER TABLE `share_platform`.`tb_data_resource` ADD COLUMN `info_list` json NULL COMMENT '属性信息'; \ No newline at end of file +ALTER TABLE `tb_data_resource` ADD COLUMN `info_list` json NULL COMMENT '属性信息'; \ No newline at end of file diff --git a/config/db/V1.5__tb_work_dynamics_update_note1.sql b/config/db/V1.5__tb_work_dynamics_update_note1.sql index 0b6a3500..dbe2970d 100644 --- a/config/db/V1.5__tb_work_dynamics_update_note1.sql +++ b/config/db/V1.5__tb_work_dynamics_update_note1.sql @@ -1,2 +1,2 @@ -ALTER TABLE `share_platform`.`tb_work_dynamics` +ALTER TABLE `tb_work_dynamics` MODIFY COLUMN `note1` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '摘要'; \ No newline at end of file diff --git a/config/db/V3.2__resource_add_col.sql b/config/db/V3.2__resource_add_col.sql index ec220d52..1f7e80a6 100644 --- a/config/db/V3.2__resource_add_col.sql +++ b/config/db/V3.2__resource_add_col.sql @@ -1,2 +1,2 @@ -alter table `share_platform`.`tb_data_resource` ADD COLUMN `visitor` bigint NULL comment '浏览量'; +alter table `tb_data_resource` ADD COLUMN `visitor` bigint NULL comment '浏览量'; UPDATE tb_data_resource SET visitor = (SELECT COUNT(id) FROM tb_resource_browse WHERE resource_id = tb_data_resource.id); \ No newline at end of file diff --git a/renren-admin/src/main/resources/db/V1.2__resource_mount_addcol.sql b/renren-admin/src/main/resources/db/V1.2__resource_mount_addcol.sql index df5655ea..5b545a1c 100644 --- a/renren-admin/src/main/resources/db/V1.2__resource_mount_addcol.sql +++ b/renren-admin/src/main/resources/db/V1.2__resource_mount_addcol.sql @@ -1,2 +1,2 @@ -ALTER TABLE `share_platform`.`t_resource_mount_apply` ADD COLUMN `resource_dto` json NULL COMMENT '挂载资源对象'; -UPDATE `share_platform`.`t_resource_mount_apply` SET resource_dto = parameter_content; \ No newline at end of file +ALTER TABLE `t_resource_mount_apply` ADD COLUMN `resource_dto` json NULL COMMENT '挂载资源对象'; +UPDATE `t_resource_mount_apply` SET resource_dto = parameter_content; \ No newline at end of file diff --git a/renren-admin/src/main/resources/db/V1.3__resource_attr_index.sql b/renren-admin/src/main/resources/db/V1.3__resource_attr_index.sql index e59a336a..e7d7a54d 100644 --- a/renren-admin/src/main/resources/db/V1.3__resource_attr_index.sql +++ b/renren-admin/src/main/resources/db/V1.3__resource_attr_index.sql @@ -1,3 +1,3 @@ -ALTER TABLE `share_platform`.`tb_data_attr` +ALTER TABLE `tb_data_attr` ADD INDEX `resource_id`(`data_resource_id`), ADD FULLTEXT INDEX `attr_value_`(`attr_type`, `attr_value`); \ No newline at end of file diff --git a/renren-admin/src/main/resources/db/V1.4__resource_add_infolist.sql b/renren-admin/src/main/resources/db/V1.4__resource_add_infolist.sql index 7ea8d219..323bad65 100644 --- a/renren-admin/src/main/resources/db/V1.4__resource_add_infolist.sql +++ b/renren-admin/src/main/resources/db/V1.4__resource_add_infolist.sql @@ -1 +1 @@ -ALTER TABLE `share_platform`.`tb_data_resource` ADD COLUMN `info_list` json NULL COMMENT '属性信息'; \ No newline at end of file +ALTER TABLE `tb_data_resource` ADD COLUMN `info_list` json NULL COMMENT '属性信息'; \ No newline at end of file diff --git a/renren-admin/src/main/resources/db/V1.5__tb_work_dynamics_update_note1.sql b/renren-admin/src/main/resources/db/V1.5__tb_work_dynamics_update_note1.sql index 0b6a3500..dbe2970d 100644 --- a/renren-admin/src/main/resources/db/V1.5__tb_work_dynamics_update_note1.sql +++ b/renren-admin/src/main/resources/db/V1.5__tb_work_dynamics_update_note1.sql @@ -1,2 +1,2 @@ -ALTER TABLE `share_platform`.`tb_work_dynamics` +ALTER TABLE `tb_work_dynamics` MODIFY COLUMN `note1` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '摘要'; \ No newline at end of file diff --git a/renren-admin/src/main/resources/db/V3.2__resource_add_col.sql b/renren-admin/src/main/resources/db/V3.2__resource_add_col.sql index ec220d52..1f7e80a6 100644 --- a/renren-admin/src/main/resources/db/V3.2__resource_add_col.sql +++ b/renren-admin/src/main/resources/db/V3.2__resource_add_col.sql @@ -1,2 +1,2 @@ -alter table `share_platform`.`tb_data_resource` ADD COLUMN `visitor` bigint NULL comment '浏览量'; +alter table `tb_data_resource` ADD COLUMN `visitor` bigint NULL comment '浏览量'; UPDATE tb_data_resource SET visitor = (SELECT COUNT(id) FROM tb_resource_browse WHERE resource_id = tb_data_resource.id); \ No newline at end of file