kolaente
13f1a13367
fix(db): interpolate table identifiers in truncate instead of binding them
...
MySQL/MariaDB/Postgres cannot bind a table name as a ? placeholder, so the non-SQLite branch failed with a syntax error. Interpolate the already-validated identifier with x.Quote (per-dialect quoting) instead. validateTableName restricts to registered table names, so this is injection-safe — the same trust model the SQLite branch already relies on. Latent bug surfaced by the new cross-engine testing webtest, which is the first to exercise this path on MySQL/MariaDB.
2026-06-17 12:13:50 +00:00
kolaente
6a3dd8b281
feat: add TruncateAllTables function for e2e test isolation
2026-04-05 09:48:09 +00:00
kolaente
cd7d40583a
fix: only dump Vikunja-owned tables
...
Same fix as WipeEverything - use the registered table list instead
of x.DBMetas() to avoid including PostgreSQL extension tables in
database dumps.
2026-03-04 15:37:54 +01:00
kolaente
7e7e778d49
fix(db): validate table names and quote identifiers in raw SQL
2026-02-25 13:01:00 +01:00
Dominik Pschenitschni
296577a875
fix: correct license header references ( #882 )
...
See originals:
- https://www.gnu.org/licenses/agpl-3.0.txt
- https://www.gnu.org/licenses/gpl-3.0.txt
2025-06-10 12:18:38 +02:00
kolaente
e518fb1191
chore: remove year from copyright headers
...
Resolves https://kolaente.dev/vikunja/api/pulls/1483
2023-09-01 08:32:28 +02:00
kolaente
b8c3b570a4
fix(restore): check if we're really dealing with a string
2022-12-02 14:49:32 +01:00
kolaente
fbc4b91e0f
fix(dump): make sure null dates are properly set when restoring from a dump
2022-12-01 17:53:02 +01:00
kolaente
1feb62cc45
fix: lint
2022-07-31 15:50:38 +02:00
kolaente
0f555b7ec7
fix: reset id sequence when importing a dump from postgres
2022-07-21 14:54:52 +02:00
kolaente
54348c5891
fix(restore): make sure to reset sequences after importing a dump when using postgres
...
Related to https://kolaente.dev/vikunja/api/issues/1199
2022-07-13 23:43:53 +02:00
kolaente
fc5703ac8c
Add truncate parameter to test fixtures setup
2021-06-03 15:30:31 +02:00
kolaente
c4a71016b8
Update copyright year
2021-02-02 20:19:13 +01:00
kolaente
9baf6d39bd
Change license to AGPLv3
2020-12-23 16:41:52 +01:00
konrad
9334b29366
Add testing endpoint to reset db tables ( #716 )
...
Fix lint
Better error messages
Add docs
Add testing endpoint to reset db
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/716
Co-Authored-By: konrad <konrad@kola-entertainments.de>
Co-Committed-By: konrad <konrad@kola-entertainments.de>
2020-11-28 23:08:30 +00:00
konrad
e4f150bbe3
Restore command ( #593 )
...
Add waiting for changes to config file
Add max size for config files
Restore files
Restore database file
Expose migrate to
Move init stuff to seperate package
Add restoring config file
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/593
2020-06-21 15:30:48 +00:00
konrad
fba333866d
Add dump command ( #592 )
...
Fix files location in dump
Fix gitignore
Add docs
Add dumps to gitignore
Move dump to seperate package
logging
Dump files
Dump version
Dump database
Dump config
Co-authored-by: kolaente <k@knt.li>
Reviewed-on: https://kolaente.dev/vikunja/api/pulls/592
2020-06-19 21:29:02 +00:00