From 53ab81156420000cb8ebb21f5125e05157973527 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Thu, 5 Mar 2026 07:54:58 -0600 Subject: [PATCH] docs: update changelog for migration fix --- CHANGELOG.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 1c11bba1..11ab12cd 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -981,3 +981,10 @@ fix: increase TimescaleDB tuple decompression limit to unlimited - Modified: priv/repo/migrations/20260304234205_increase_timescaledb_decompression_limit.exs - The sync_interfaces/2 function was hitting the default 100,000 tuple limit when syncing devices with many interfaces + +fix: use current_database() in TimescaleDB migration +- Fixed production crash caused by hardcoded development database name +- Migration now uses PostgreSQL's current_database() function to get actual database name at runtime +- Modified: priv/repo/migrations/20260304234205_increase_timescaledb_decompression_limit.exs +- Fixes: ERROR 3D000 (invalid_catalog_name) database "towerops_dev" does not exist +