From be5999be7a28e38fefb2c763440e85a370d7d198 Mon Sep 17 00:00:00 2001 From: zhuxu Date: Wed, 18 Dec 2024 11:30:26 +0800 Subject: [PATCH] update component --- create.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/create.sql b/create.sql index b5ceb82..9284858 100644 --- a/create.sql +++ b/create.sql @@ -229,7 +229,7 @@ COMMENT ON COLUMN page.operate_at IS '操作时间'; -- DROP TABLE IF EXISTS component; CREATE TABLE component ( id SERIAL PRIMARY KEY, - global_uuid UUID DEFAULT uuid_generate_v4(), + global_uuid UUID NOT NULL DEFAULT gen_random_uuid(), visible_id VARCHAR(50) NOT NULL DEFAULT '', comment VARCHAR(500) NOT NULL DEFAULT '', name VARCHAR(50) NOT NULL DEFAULT '', -- 可见字符即可