From 047de0a7391b33f95bd188ede449bc137a3c5c2a Mon Sep 17 00:00:00 2001 From: Trezy Date: Mon, 13 Apr 2026 10:59:38 -0500 Subject: [PATCH] fix: database column type mismatch --- .../postgres/20260413000000_api_clients_fix_refill_rate_type.sql | 1 + .../sqlite/20260413000000_api_clients_fix_refill_rate_type.sql | 1 + 2 files changed, 2 insertions(+) create mode 100644 migrations/postgres/20260413000000_api_clients_fix_refill_rate_type.sql create mode 100644 migrations/sqlite/20260413000000_api_clients_fix_refill_rate_type.sql diff --git a/migrations/postgres/20260413000000_api_clients_fix_refill_rate_type.sql b/migrations/postgres/20260413000000_api_clients_fix_refill_rate_type.sql new file mode 100644 index 0000000..65dc851 --- /dev/null +++ b/migrations/postgres/20260413000000_api_clients_fix_refill_rate_type.sql @@ -0,0 +1 @@ +ALTER TABLE api_clients ALTER COLUMN rate_limit_refill_rate TYPE DOUBLE PRECISION; diff --git a/migrations/sqlite/20260413000000_api_clients_fix_refill_rate_type.sql b/migrations/sqlite/20260413000000_api_clients_fix_refill_rate_type.sql new file mode 100644 index 0000000..411cb7c --- /dev/null +++ b/migrations/sqlite/20260413000000_api_clients_fix_refill_rate_type.sql @@ -0,0 +1 @@ +-- No-op: SQLite stores all floats as 8-byte IEEE 754 regardless of declared type. -- 2.51.2