github dannymcc/may v0.18.1

2 hours ago

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 empty alembic_version table, which caused flask db upgrade to replay migrations from scratch and fail on a duplicate odometer_unit column, leaving the default_vehicle_id migration unexecuted.

Other Changes

  • Migrations 998cdb1497c6, 613be8af4376, and a1b2c3d4e5f6 are 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_migrations now adds users.default_vehicle_id as a fallback so the app boots even if alembic state can't be recovered automatically.
  • docker-entrypoint.sh no longer silently swallows flask db upgrade failures — 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.

Don't miss a new may release

NewReleases is sending notifications on new releases.