Fix 001_init.js database column mismatch
Mirror to GitHub / mirror (push) Successful in 26s
Test and Lint / backend-test (push) Successful in 1m13s
continuous-integration/drone/push Build is passing
Test and Lint / frontend-test (push) Successful in 1m58s
Version and Release / version-bump (push) Failing after 36s
Version and Release / trigger-drone (push) Has been skipped

- Removed must_change_password field that doesn't exist in admin_users table
- Changed from using db to knex parameter for database operations
- Fixed require statement that was accidentally changed
- Updated security message to reflect no forced password change
- Removed debug logging after identifying the issue

The error occurred because 001_init.js was trying to insert a column
that doesn't exist in the admin_users table schema created by
initializeDatabase().
This commit is contained in:
2025-07-25 13:15:06 +02:00
parent ccf59d1d4d
commit 055de06315
2 changed files with 8 additions and 10 deletions
@@ -141,7 +141,6 @@ async function runMigrations() {
const numB = parseInt(baseB.split('_')[0]);
return numA - numB;
});
console.log('Migration files in order:', migrationFiles.map(f => path.basename(f)));
} else {
// For existing deployments, run all migrations (legacy + core)
console.log('Existing deployment detected - checking all migrations');