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 | 6 | --更新组态内容节点表的主键ID为uuid |
7 | 7 | CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; |
8 | 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 | 12 | --添加3d组件的新表 |
11 | 13 | DROP TABLE IF EXISTS "public"."tk_3d_component"; |
12 | 14 | CREATE TABLE "public"."tk_3d_component" ( | ... | ... |