Fix Database Tracking Issue: Remove SQLite DB from Git History and Prevent Future Tracking#181
Merged
Manjushwarofficial merged 3 commits intoOpenFlow-X:mainfrom Oct 28, 2025
Merged
Conversation
Thanks for creating a PR for your Issue!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The SQLite database file wardha.db was previously tracked by Git, which introduced several issues:
Security Risk: Sensitive user data could be exposed if pushed to a public repo.
Repository Bloat: Database files increase repo size and slow down operations.
Merge Conflicts: Binary databases cause unresolvable conflicts between branches.
Bad Practice: Databases are runtime artifacts, not source code, so they shouldn't be version-controlled.
Solution
This PR includes the following fixes:
Updated .gitignore
Added *.db pattern to block database files from being tracked
Removed Database from Git History
Used history rewriting to remove wardha.db from all past commits (269 commits processed)
Updated README.md
Added a Database Setup section under Quick Start
Contributors now generate their own local database by running python app.py
Changes Made
.gitignore: Added ignore rule for SQLite databases
README.md: Added instructions for DB creation
Git history rewritten to fully remove tracked DB artifacts
Testing
Verified python app.py regenerates the database locally
Confirmed .gitignore prevents future staging of .db files
Acceptance Criteria
✅ Database file removed from repository
✅ .gitignore correctly ignores *.db
✅ Documentation updated for new contributors