From 0674056e7e9dbb03d3c3e2cc7b98b804c38afda0 Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Sun, 18 Jan 2026 20:22:42 -0600 Subject: [PATCH] fix: add subscriptions to migration order (refs #55) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The subscriptions feature migration was not being run because it was missing from the MIGRATION_ORDER array. Added it after ownership-costs since it depends on user-profile (for subscription_tier enum) and vehicles (for FK relationships). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/src/_system/migrations/run-all.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/_system/migrations/run-all.ts b/backend/src/_system/migrations/run-all.ts index 2d0fd9e..136a8f3 100644 --- a/backend/src/_system/migrations/run-all.ts +++ b/backend/src/_system/migrations/run-all.ts @@ -29,6 +29,7 @@ const MIGRATION_ORDER = [ 'features/terms-agreement', // Terms & Conditions acceptance audit trail 'features/audit-log', // Centralized audit logging; independent 'features/ownership-costs', // Depends on vehicles and documents; TCO recurring costs + 'features/subscriptions', // Stripe subscriptions; depends on user-profile, vehicles ]; // Base directory where migrations are copied inside the image (set by Dockerfile)