mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
![]() * add db seed/reset functionality * speculative db migration support * update postgresSchema * refactor: only migrate data, no schema * implement transaction in db migration function * refactor db:seed and db:reset added transaction to both and updated help message * change table order * skip on foreign key constraint violations * skip feed_cache * set constraints to null * fix seed and reset * simplify migrate func This version of the function should behave similarly to the previous version, but with less repetition and by relying on PostgreSQL's automatic transaction handling, which starts a new transaction for each separate statement when not in a transaction block. Also, it prepares the insert statement only once for each table, which can significantly improve performance when there are many rows to insert. * fixed release_action_status * refactor db:seed and db:reset * minor adjustment to const usage * fixed usage examples * refactor seed/migrate * refactor(database): seed and convert * refactor(database): make tables list sorted a-z * chore(deps): go mod tidy * refactor(database): convert improve log output --------- Co-authored-by: ze0s <ze0s@riseup.net> |
||
---|---|---|
.. | ||
action | ||
announce | ||
api | ||
auth | ||
client | ||
config | ||
database | ||
domain | ||
download_client | ||
events | ||
feed | ||
filter | ||
http | ||
indexer | ||
irc | ||
logger | ||
mock | ||
notification | ||
release | ||
scheduler | ||
server | ||
update | ||
user | ||
utils |