Skip to content

Commit

Permalink
Explicitly specify timezone for TIMESTAMP values (#3012)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexshtin committed Jun 23, 2022
1 parent f86b8d2 commit c7d831b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions schema/mysql/v57/temporal/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ CREATE TABLE cluster_membership
rpc_address VARCHAR(128) NOT NULL,
rpc_port SMALLINT NOT NULL,
role TINYINT NOT NULL,
session_start TIMESTAMP DEFAULT '1970-01-01 00:00:01',
last_heartbeat TIMESTAMP DEFAULT '1970-01-01 00:00:01',
record_expiry TIMESTAMP DEFAULT '1970-01-01 00:00:01',
session_start TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
last_heartbeat TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
record_expiry TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
INDEX (role, host_id),
INDEX (role, last_heartbeat),
INDEX (rpc_address, role),
Expand Down
6 changes: 3 additions & 3 deletions schema/mysql/v57/temporal/versioned/v1.0/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ CREATE TABLE cluster_membership
rpc_address VARCHAR(15) NOT NULL,
rpc_port SMALLINT NOT NULL,
role TINYINT NOT NULL,
session_start TIMESTAMP DEFAULT '1970-01-01 00:00:01',
last_heartbeat TIMESTAMP DEFAULT '1970-01-01 00:00:01',
record_expiry TIMESTAMP DEFAULT '1970-01-01 00:00:01',
session_start TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
last_heartbeat TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
record_expiry TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
INDEX (role, host_id),
INDEX (role, last_heartbeat),
INDEX (rpc_address, role),
Expand Down
6 changes: 3 additions & 3 deletions schema/postgresql/v96/temporal/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,9 @@ CREATE TABLE cluster_membership
rpc_address VARCHAR(128) NOT NULL,
rpc_port SMALLINT NOT NULL,
role SMALLINT NOT NULL,
session_start TIMESTAMP DEFAULT '1970-01-01 00:00:01',
last_heartbeat TIMESTAMP DEFAULT '1970-01-01 00:00:01',
record_expiry TIMESTAMP DEFAULT '1970-01-01 00:00:01',
session_start TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
last_heartbeat TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
record_expiry TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
PRIMARY KEY (membership_partition, host_id)
);

Expand Down
6 changes: 3 additions & 3 deletions schema/postgresql/v96/temporal/versioned/v1.0/schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,9 @@ CREATE TABLE cluster_membership
rpc_address VARCHAR(15) NOT NULL,
rpc_port SMALLINT NOT NULL,
role SMALLINT NOT NULL,
session_start TIMESTAMP DEFAULT '1970-01-01 00:00:01',
last_heartbeat TIMESTAMP DEFAULT '1970-01-01 00:00:01',
record_expiry TIMESTAMP DEFAULT '1970-01-01 00:00:01',
session_start TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
last_heartbeat TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
record_expiry TIMESTAMP DEFAULT '1970-01-01 00:00:01+00:00',
PRIMARY KEY (membership_partition, host_id)
);

Expand Down

0 comments on commit c7d831b

Please sign in to comment.