mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-05 08:49:38 +03:00
[PR #1108] [MERGED] Updates to import/export #1056
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pocket-id/pocket-id/pull/1108
Author: @ItalyPaleAle
Created: 11/20/2025
Status: ✅ Merged
Merged: 11/25/2025
Merged by: @stonith404
Base:
feat/data-export-import← Head:import-export-updates📝 Commits (9)
98d922fWIPc81314eLots of work to allow import from the new format366682dSome more work & fixes8239d55Fixed and supports nullable typesff6a0c4Always migrate to target version6b5f08cApply suggestions from code review8afe614Revert changec84cac2💄8c04e62Add test to ensure migrations are defined for both databases📊 Changes
10 files changed (+450 additions, -277 deletions)
View changed files
📝
backend/go.mod(+10 -10)📝
backend/go.sum(+28 -24)📝
backend/internal/cmds/import.go(+39 -20)📝
backend/internal/model/types/date_time.go(+9 -0)📝
backend/internal/service/export_service.go(+73 -69)📝
backend/internal/service/import_service.go(+101 -154)➕
backend/internal/utils/db_util.go(+116 -0)➕
backend/resources/files_test.go(+72 -0)➕
backend/resources/migrations/postgres/20251117141000_export_normalization.down.sql(+1 -0)➕
backend/resources/migrations/postgres/20251117141000_export_normalization.up.sql(+1 -0)📄 Description
PR against #998
Tested that this also allows switching between Postgres and SQLite
Note: I have not updated the E2E tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.