Open source personal finance application
chore: drop historical Convex references from comments and docs
Ilya Komichev09c4b6bbaa70
diff --git a/app/scripts/import-firebase.mjs b/app/scripts/import-firebase.mjsindex 7ecca5b0..e79c1d38 100644--- a/app/scripts/import-firebase.mjs+++ b/app/scripts/import-firebase.mjs@@ -1,11 +1,9 @@#!/usr/bin/env node// Import a Firebase JSON export into the Supabase + PowerSync backend.//-// Successor to the old `utils/migrate/firebase.js` (Firebase -> Convex). The-// Supabase model lets the client pick row ids (all id columns are plain `text`,-// no FK constraints), so unlike the Convex version this reuses the Firebase ids-// verbatim - no id remap pass, references (parentId / walletId / categoryId)-// stay valid as-is.+// The Supabase model lets the client pick row ids (all id columns are plain+// `text`, no FK constraints), so this reuses the Firebase ids verbatim - no id+// remap pass, references (parentId / walletId / categoryId) stay valid as-is.//// Writes go through PostgREST with the project's `service_role` key (bypasses// RLS, runs over HTTPS so the IPv6-only direct Postgres connection is irrelevant)diff --git a/docs/content/en/2.development/04.migration.md b/docs/content/en/2.development/04.migration.mdindex 38c5f809..5426f12b 100644--- a/docs/content/en/2.development/04.migration.md+++ b/docs/content/en/2.development/04.migration.md@@ -40,7 +40,7 @@ node scripts/import-firebase.mjs <backup.json> --email <owner-email> --wipe### Transforms it applies-- **Ids reused, not remapped** - Supabase id columns are plain `text` with no FK constraints, so the script keeps the original Firebase keys as ids; `parentId` / `walletId` / `categoryId` references stay valid with no remap pass. (This is the main difference from the old Firebase -> Convex script, which had to remap server-generated ids.)+- **Ids reused, not remapped** - Supabase id columns are plain `text` with no FK constraints, so the script keeps the original Firebase keys as ids; `parentId` / `walletId` / `categoryId` references stay valid with no remap pass.- **Accounts -> wallets**; **`settings.lang` -> `user_settings.locale`**; **`settings.baseCurrency` -> `user_settings.baseCurrency`**.- **Icons** - `mdi mdi-xxx` -> `mdi:xxx`; empty -> `mdi:category-outline`.- **Transfer / adjustment** - categories named `Transfer` / `Перевод` / `Adjustment` are not real categories and are skipped; their transactions become `categoryId = 'transfer'` (type 2, with the `expense*` / `income*` fields) or `categoryId = 'adjustment'` (otherwise).diff --git a/docs/content/ru/2.development/04.migration.md b/docs/content/ru/2.development/04.migration.mdindex 4954da47..ba93c536 100644--- a/docs/content/ru/2.development/04.migration.md+++ b/docs/content/ru/2.development/04.migration.md@@ -40,7 +40,7 @@ node scripts/import-firebase.mjs <backup.json> --email <owner-email> --wipe### Какие преобразования применяются-- **Id переиспользуются, не ремапятся** - id-колонки в Supabase это обычный `text` без FK-ограничений, поэтому скрипт сохраняет исходные ключи Firebase как id; ссылки `parentId` / `walletId` / `categoryId` остаются валидными без отдельного прохода ремаппинга. (Это главное отличие от старого скрипта Firebase -> Convex, которому приходилось ремапить сгенерированные сервером id.)+- **Id переиспользуются, не ремапятся** - id-колонки в Supabase это обычный `text` без FK-ограничений, поэтому скрипт сохраняет исходные ключи Firebase как id; ссылки `parentId` / `walletId` / `categoryId` остаются валидными без отдельного прохода ремаппинга.- **Accounts -> wallets**; **`settings.lang` -> `user_settings.locale`**; **`settings.baseCurrency` -> `user_settings.baseCurrency`**.- **Иконки** - `mdi mdi-xxx` -> `mdi:xxx`; пустая -> `mdi:category-outline`.- **Transfer / adjustment** - категории с именами `Transfer` / `Перевод` / `Adjustment` не являются настоящими категориями и пропускаются; их транзакции получают `categoryId = 'transfer'` (тип 2, с полями `expense*` / `income*`) или `categoryId = 'adjustment'` (иначе).