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

Track database changes in repository to allow for reverts in case of vandalism and edit history #1

Open
epilys opened this issue Aug 4, 2024 · 0 comments

Comments

@epilys
Copy link

epilys commented Aug 4, 2024

A proposal:

  1. Track changes in an sqlite3 database file
  2. Create new branch in repository with a new root (i.e. it will not share history with the source code branches) for tracking the data. The data will be in plain text since committing binary files to git is bad for compression and readability.
  3. When changed, create a plain text dump of the database using https://datasette.io/tools/sqlite-diffable
  4. If different from current version in repository, create a commit by triggering a webhook to start a workflow dispatch with input being the diff to apply (see https://docs.github.com/en/webhooks/webhook-events-and-payloads#workflow_dispatch)
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

No branches or pull requests

1 participant