From 49c6c8fd00fc83bdd8522b459e7dfaa9996b38ca Mon Sep 17 00:00:00 2001 From: Michael Chihlas Date: Fri, 24 Apr 2026 23:36:04 -0400 Subject: [PATCH] fix(seed): include cancel_at_period_end in test-user subscription INSERT Discovered during Phase 9 QA: seed_test_users.py was missing the cancel_at_period_end column in its subscriptions INSERT, but the column is NOT NULL (added in 016_add_subscription_tables.py). Result: seed crashed with NotNullViolationError before any users were created, blocking auth in fresh dev environments. Pre-existing on main; not introduced by the FlowPilot migration branch. Default value: false. Co-Authored-By: Claude Opus 4.7 --- backend/scripts/seed_test_users.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/scripts/seed_test_users.py b/backend/scripts/seed_test_users.py index 8526fea1..715bba8d 100644 --- a/backend/scripts/seed_test_users.py +++ b/backend/scripts/seed_test_users.py @@ -161,8 +161,8 @@ async def main() -> None: if cfg["plan"] is not None: await conn.execute( text(""" - INSERT INTO subscriptions (id, account_id, plan, status, created_at, updated_at) - VALUES (:id, :aid, :plan, 'active', :now, :now) + INSERT INTO subscriptions (id, account_id, plan, status, cancel_at_period_end, created_at, updated_at) + VALUES (:id, :aid, :plan, 'active', false, :now, :now) """), {"id": uuid.uuid4(), "aid": account_id, "plan": cfg["plan"], "now": now}, )