renaming timestamp and using changing timestamp type

This commit is contained in:
Godmode Galactus 2023-10-17 15:13:42 +02:00
parent 3cb4a874b9
commit 0e151a75ec
No known key found for this signature in database
GPG Key ID: A04142C71ABB0DEA
2 changed files with 4 additions and 4 deletions

View File

@ -9,8 +9,8 @@ CREATE TABLE banking_stage_results.transaction_infos (
first_notification_slot BIGINT NOT NULL,
cu_requested BIGINT,
prioritization_fees BIGINT,
timestamp TIMESTAMP NOT NULL,
accounts_used text[],
utc_timestamp TIMESTAMP WITH TIME ZONE NOT NULL,
accounts_used text[]
);
CREATE TABLE banking_stage_results.blocks (
@ -22,5 +22,5 @@ CREATE TABLE banking_stage_results.blocks (
processed_transactions BIGINT,
total_cu_used BIGINT,
total_cu_requested BIGINT,
heavily_writelocked_accounts text[],
heavily_writelocked_accounts text[]
);

View File

@ -99,7 +99,7 @@ impl PostgresSession {
let mut query = String::from(
r#"
INSERT INTO banking_stage_results.transaction_infos
(signature, message, errors, is_executed, is_confirmed, first_notification_slot, cu_requested, prioritization_fees, timestamp, accounts_used)
(signature, message, errors, is_executed, is_confirmed, first_notification_slot, cu_requested, prioritization_fees, utc_timestamp, accounts_used)
VALUES
"#,
);