合并 agent-mvp 到 master #1

Merged
jiang merged 93 commits from agent-mvp into master 2026-08-18 17:56:43 +08:00
2 changed files with 1 additions and 17 deletions
Showing only changes of commit 87d922ea61 - Show all commits
@@ -44,20 +44,4 @@ BEGIN
ALTER COLUMN timestamp TYPE TIMESTAMP WITH TIME ZONE ALTER COLUMN timestamp TYPE TIMESTAMP WITH TIME ZONE
USING "timestamp" AT TIME ZONE ''UTC'''; USING "timestamp" AT TIME ZONE ''UTC''';
END IF; END IF;
IF EXISTS (
SELECT 1
FROM information_schema.columns
WHERE table_schema = 'public'
AND table_name = 'scheme_list'
AND column_name = 'scheme_start_time'
AND data_type IN ('character varying', 'text')
) THEN
EXECUTE 'ALTER TABLE public.scheme_list
ALTER COLUMN scheme_start_time TYPE TIMESTAMP WITH TIME ZONE
USING CASE
WHEN scheme_start_time ~ ''(Z|[+-][0-9]{2}:[0-9]{2})$'' THEN scheme_start_time::timestamptz
ELSE scheme_start_time::timestamp AT TIME ZONE ''UTC''
END';
END IF;
END $$; END $$;
+1 -1
View File
@@ -9,6 +9,6 @@ create table scheme_list (
scheme_type varchar(32) not null, scheme_type varchar(32) not null,
username varchar(32) not null, username varchar(32) not null,
create_time TIMESTAMP WITH TIME ZONE not null DEFAULT date_trunc('minute', CURRENT_TIMESTAMP), create_time TIMESTAMP WITH TIME ZONE not null DEFAULT date_trunc('minute', CURRENT_TIMESTAMP),
scheme_start_time TIMESTAMP WITH TIME ZONE not null, scheme_start_time varchar(50) not null,
scheme_detail JSON scheme_detail JSON
) )