Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backup database #4359

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

broquemonsieur
Copy link

@broquemonsieur broquemonsieur commented Dec 28, 2023

the first step in addressing automatic migration
#4190 (comment)

@broquemonsieur broquemonsieur requested review from unixfox and a team as code owners December 28, 2023 17:36
@broquemonsieur broquemonsieur changed the title Invidious migrations backup database Dec 29, 2023

This comment has been minimized.

@github-actions github-actions bot added the stale label Mar 28, 2024
@syeopite syeopite removed the stale label Mar 28, 2024
)
SQL

@db.exec("DROP TABLE backup.#{table_name}")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem I see with that is that it might nuke a perfectly valid backup if invidious is interrupted mid-migration and the user tries to run it again immediately after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants