Skip to content

Commit b0180d1

Browse files
committed
chat-memory-jdbc : Remove 'DEFAULT CURRENT_TIMESTAMP' statement
Signed-off-by: linarkou <[email protected]>
1 parent 2b42f34 commit b0180d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

memory/spring-ai-model-chat-memory-jdbc/src/main/resources/org/springframework/ai/chat/memory/jdbc/schema-mariadb.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS ai_chat_memory (
22
conversation_id VARCHAR(36) NOT NULL,
33
content TEXT NOT NULL,
44
type VARCHAR(10) NOT NULL,
5-
`timestamp` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
5+
`timestamp` TIMESTAMP NOT NULL,
66
CONSTRAINT type_check CHECK (type IN ('USER', 'ASSISTANT', 'SYSTEM', 'TOOL'))
77
);
88

memory/spring-ai-model-chat-memory-jdbc/src/main/resources/org/springframework/ai/chat/memory/jdbc/schema-postgresql.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS ai_chat_memory (
22
conversation_id VARCHAR(36) NOT NULL,
33
content TEXT NOT NULL,
44
type VARCHAR(10) NOT NULL CHECK (type IN ('USER', 'ASSISTANT', 'SYSTEM', 'TOOL')),
5-
"timestamp" TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
5+
"timestamp" TIMESTAMP NOT NULL
66
);
77

88
CREATE INDEX IF NOT EXISTS ai_chat_memory_conversation_id_timestamp_idx

0 commit comments

Comments
 (0)