From f3baefda4f9f064ef01ac2c3a61cdcad9323bcca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Negovanovi=C4=87?= Date: Tue, 1 Oct 2024 18:09:19 +0200 Subject: [PATCH] fix: change some columns types (address comment from @joanestebanr 2nd part) --- ethtxmanager/sqlstorage/migrations/0001.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ethtxmanager/sqlstorage/migrations/0001.sql b/ethtxmanager/sqlstorage/migrations/0001.sql index 39d1c75..8cb779a 100644 --- a/ethtxmanager/sqlstorage/migrations/0001.sql +++ b/ethtxmanager/sqlstorage/migrations/0001.sql @@ -15,9 +15,9 @@ CREATE TABLE IF NOT EXISTS monitored_txs ( gas_tip_cap TEXT, -- *big.Int "status" TEXT NOT NULL, block_number TEXT NOT NULL, -- *big.Int - history TEXT, -- JSON encoded string - created_at TEXT NOT NULL, - updated_at TEXT NOT NULL, + history JSONB, + created_at TIMESTAMP NOT NULL, + updated_at TIMESTAMP NOT NULL, estimate_gas INTEGER NOT NULL -- 0 = FALSE, 1 = TRUE );