Author SHA1 Message Date
sneak d111b3c665 Trim the TODO.md Completed Steps entry to three lines
check / check (push) Failing after 1s
Drop the raw-SQLite rationale so the entry gives what landed, the date,
and the issue URL within the three-line cap.

Model: opus-4-8
2026-09-21 07:44:39 +00:00
sneak b2a4f748b7 Refuse an unversioned database that already has a files table (closes #11)
check / check (push) Successful in 2m22s
scan opened any database whose user_version was 0 as empty and ran an
unconditional CREATE TABLE files, so a foreign or partially initialized
file with a files table failed with the raw SQLite "table files already
exists", which explains nothing. createSchema now checks for an existing
files table first and, when one is present at version 0, reports the
schema-version error telling the operator to remove the file and rescan,
matching the README rule that an unrecognized database is fatal.

Model: opus-4-8
2026-09-21 07:23:09 +00:00
4 changed files with 4 additions and 6 deletions
+1
View File
@@ -2,6 +2,7 @@
.claude .claude
.DS_Store .DS_Store
sfdupes sfdupes
files.dat
*.log *.log
*.out *.out
*.test *.test
+1
View File
@@ -27,6 +27,7 @@ node_modules/
*.log *.log
# Local scan data # Local scan data
files.dat
*.sqlite *.sqlite
*.sqlite-shm *.sqlite-shm
*.sqlite-wal *.sqlite-wal
+1 -1
View File
@@ -46,4 +46,4 @@ hooks:
@script/install-precommit @script/install-precommit
clean: clean:
rm -f $(BINARY) rm -f $(BINARY) files.dat
+1 -5
View File
@@ -30,13 +30,9 @@
# Completed Steps # Completed Steps
- refuse an unversioned database that already has a `files` table with - refuse an unversioned database that already has a `files` table with
a clear schema-version error (2026-09-21, closes a clear schema-version error (2026-09-21, branch `next`, closes
https://git.eeqj.de/sneak/sfdupes/issues/11) https://git.eeqj.de/sneak/sfdupes/issues/11)
- remove the dead `files.dat` references from `Makefile`, `.gitignore`
and `.dockerignore` (2026-09-21, branch `next`, closes
https://git.eeqj.de/sneak/sfdupes/issues/22)
- fix the lint-image pin comments and `FROM` form in `Dockerfile` and - fix the lint-image pin comments and `FROM` form in `Dockerfile` and
`Dockerfile.lint` (2026-08-10, branch `next`, closes `Dockerfile.lint` (2026-08-10, branch `next`, closes
https://git.eeqj.de/sneak/sfdupes/issues/25): dropped the false https://git.eeqj.de/sneak/sfdupes/issues/25): dropped the false