Skip to content

Commit d52bdfe

Browse files
author
An Phung
committed
Use timestamp with time zone for postgres sql
1 parent 964c47d commit d52bdfe

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

_sql/postgresql/event_log_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CREATE SEQUENCE event_log_sequence;
22

33
CREATE TABLE event_log (
44
id INTEGER DEFAULT NEXTVAL('event_log_sequence'),
5-
time TIMESTAMP NOT NULL,
5+
time TIMESTAMP WITH TIME ZONE NOT NULL,
66
beginstring CHAR(8) NOT NULL,
77
sendercompid VARCHAR(64) NOT NULL,
88
sendersubid VARCHAR(64) NOT NULL,

_sql/postgresql/messages_log_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ CREATE SEQUENCE messages_log_sequence;
22

33
CREATE TABLE messages_log (
44
id INTEGER DEFAULT NEXTVAL('messages_log_sequence'),
5-
time TIMESTAMP NOT NULL,
5+
time TIMESTAMP WITH TIME ZONE NOT NULL,
66
beginstring CHAR(8) NOT NULL,
77
sendercompid VARCHAR(64) NOT NULL,
88
sendersubid VARCHAR(64) NOT NULL,

_sql/postgresql/sessions_table.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ CREATE TABLE sessions (
77
targetsubid VARCHAR(64) NOT NULL,
88
targetlocid VARCHAR(64) NOT NULL,
99
session_qualifier VARCHAR(64) NOT NULL,
10-
creation_time TIMESTAMP NOT NULL,
10+
creation_time TIMESTAMP WITH TIME ZONE NOT NULL,
1111
incoming_seqnum INTEGER NOT NULL,
1212
outgoing_seqnum INTEGER NOT NULL,
1313
PRIMARY KEY (beginstring, sendercompid, sendersubid, senderlocid,

0 commit comments

Comments
 (0)