vikunja/pkg/db
kolaente 14e2c95a83 fix: only drop Vikunja-owned tables in WipeEverything
Previously WipeEverything used x.DBMetas() which returns all tables
in the database, including those owned by PostgreSQL extensions like
PostGIS. This caused restore to fail with 'cannot drop table
spatial_ref_sys because extension postgis requires it'.

Now uses the registered table list instead.

Fixes go-vikunja/vikunja#2219
2026-03-04 15:37:54 +01:00
..
fixtures test: add orphaned project fixture for repair-projects command 2026-02-25 11:56:25 +01:00
db.go fix: only drop Vikunja-owned tables in WipeEverything 2026-03-04 15:37:54 +01:00
db_path_test.go refactor(db): extract testable ResolveDatabasePath function (#2193) 2026-02-08 10:47:57 +00:00
dump.go fix(db): validate table names and quote identifiers in raw SQL 2026-02-25 13:01:00 +01:00
helpers.go fix: MySQL constraint violations returning HTTP 500 instead of 400 for task bucket duplicates (#1154) 2025-07-22 08:59:12 +00:00
helpers_test.go fix: MySQL constraint violations returning HTTP 500 instead of 400 for task bucket duplicates (#1154) 2025-07-22 08:59:12 +00:00
test.go refactor: remove environment variable requirements for go test 2026-02-17 18:01:05 +01:00
test_fixtures.go refactor: remove environment variable requirements for go test 2026-02-17 18:01:05 +01:00