Showing
1 changed file
with
3 additions
and
1 deletions
@@ -6,7 +6,9 @@ update tk_configuration_content_node set configuration_node_id = id; | @@ -6,7 +6,9 @@ update tk_configuration_content_node set configuration_node_id = id; | ||
6 | --更新组态内容节点表的主键ID为uuid | 6 | --更新组态内容节点表的主键ID为uuid |
7 | CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; | 7 | CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; |
8 | update tk_configuration_content_node set id = uuid_generate_v4(); | 8 | update tk_configuration_content_node set id = uuid_generate_v4(); |
9 | - | 9 | +--移除组态内容节点的组合主键 |
10 | +ALTER TABLE "public"."tk_configuration_content_node" DROP CONSTRAINT tk_configuration_content_node_pkey; | ||
11 | +ALTER TABLE "public"."tk_configuration_content_node" ADD CONSTRAINT "tk_configuration_content_node_pkey" PRIMARY KEY ("id"); | ||
10 | --添加3d组件的新表 | 12 | --添加3d组件的新表 |
11 | DROP TABLE IF EXISTS "public"."tk_3d_component"; | 13 | DROP TABLE IF EXISTS "public"."tk_3d_component"; |
12 | CREATE TABLE "public"."tk_3d_component" ( | 14 | CREATE TABLE "public"."tk_3d_component" ( |