diff --git a/.gitattributes b/.gitattributes index a172dd3..5f239e3 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,10 @@ -Cargo.lock text -merge eol=lf linguist-generated=true -diff -package-lock.json linguist-generated=true -diff +* text=auto eol=lf +*.sql text eol=lf +*.sh text eol=lf +*.ts text eol=lf +*.tsx text eol=lf +*.json text eol=lf +*.md text eol=lf +*.toml text eol=lf +*.yml text eol=lf +*.yaml text eol=lf diff --git a/backend/src/db/migrate.ts b/backend/src/db/migrate.ts index f20aa2f..749a674 100644 --- a/backend/src/db/migrate.ts +++ b/backend/src/db/migrate.ts @@ -210,7 +210,7 @@ async function runMigrations(isDryRun: boolean): Promise { // File already applied — check for content drift (tampering detection). if (record.checksum !== file.checksum) { const msg = - `[migrate] DRIFT DETECTED: "${file.filename}" was previously ` + + `[migrate] DRIFT DETECTED: "${file.filename}" at "${file.absolutePath}" was previously ` + `applied with checksum ${record.checksum} but the file now has ` + `checksum ${file.checksum}. ` + `Aborting to protect database integrity.`;