From b2ff8d22741ee2eaa61542e64bb82b4912d8efe6 Mon Sep 17 00:00:00 2001 From: Chris Schinnerl Date: Wed, 21 Aug 2024 16:31:07 +0200 Subject: [PATCH] stores: fix migration --- .../metrics/migration_00002_idx_wallet_metrics_immature.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stores/sql/sqlite/migrations/metrics/migration_00002_idx_wallet_metrics_immature.sql b/stores/sql/sqlite/migrations/metrics/migration_00002_idx_wallet_metrics_immature.sql index 6844e5184..ee2b3e109 100644 --- a/stores/sql/sqlite/migrations/metrics/migration_00002_idx_wallet_metrics_immature.sql +++ b/stores/sql/sqlite/migrations/metrics/migration_00002_idx_wallet_metrics_immature.sql @@ -1,2 +1,3 @@ -ALTER TABLE `wallets` ADD COLUMN `immature_lo` BIGINT NOT NULL, ADD COLUMN `immature_hi` BIGINT NOT NULL; +ALTER TABLE `wallets` ADD COLUMN `immature_lo` BIGINT DEFAULT 0; +ALTER TABLE `wallets` ADD COLUMN `immature_hi` BIGINT DEFAULT 0; CREATE INDEX `idx_wallets_immature` ON `wallets`(`immature_lo`,`immature_hi`); \ No newline at end of file