What's Changed
Bug Fixes
- Fix container startup failure after upgrading from v0.15.0/v0.16.0 with
no such column: users.default_vehicle_id(#132, #136). Databases created before Flask-Migrate was introduced had an emptyalembic_versiontable, which causedflask db upgradeto replay migrations from scratch and fail on a duplicateodometer_unitcolumn, leaving thedefault_vehicle_idmigration unexecuted.
Other Changes
- Migrations
998cdb1497c6,613be8af4376, anda1b2c3d4e5f6are now idempotent and safely skip changes that are already in place. - New alembic bootstrap step stamps the correct revision for pre-Flask-Migrate databases so future upgrades only apply pending migrations.
_run_schema_migrationsnow addsusers.default_vehicle_idas a fallback so the app boots even if alembic state can't be recovered automatically.docker-entrypoint.shno longer silently swallowsflask db upgradefailures — any remaining migration error is now visible in container logs.
Upgrade note: No manual action is required. Containers that previously failed to start with the missing-column error will now complete migration automatically on next boot.