Skip to content

fix(api): remove unmigrated columns from createPlant#36

Open
imwra wants to merge 2 commits into
mainfrom
imwra/fix-steps-pt-br
Open

fix(api): remove unmigrated columns from createPlant#36
imwra wants to merge 2 commits into
mainfrom
imwra/fix-steps-pt-br

Conversation

@imwra

@imwra imwra commented Apr 15, 2026

Copy link
Copy Markdown
Owner

Summary

  • The createPlant INSERT referenced garden_id and catalog_id columns that don't exist in the production Turso DB
  • The lifecycle migration only added plant_type, strain_id, strain_name, strain_type, environment, current_phase, phase_started_at, grow_id — but not garden_id or catalog_id
  • This caused a 500 "Internal server error" when trying to add a plant
  • Same fix as aeb4c031 which was overwritten when the lifecycle feature branch was merged

Test plan

  • Add a regular plant via the Add Plant modal — should succeed
  • Add a cannabis plant with strain selection — should succeed
  • Verify existing plants still load correctly

🤖 Generated with Claude Code

willaraujo and others added 2 commits April 14, 2026 23:17
Production DB doesn't have garden_id or catalog_id columns — the
lifecycle-migration.sql only added plant_type, strain_id, etc. The
INSERT was referencing columns that don't exist, causing a 500 error
when adding a plant.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
All form labels, options, and buttons in the Add Plant modal were
hardcoded in English. Added i18n translations and wired up the locale
prop from GardenDashboard.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant