Skip to content

Fix org_nodes foreign key constraint#10

Open
lukeryannetnz wants to merge 4 commits intomainfrom
codex/prd1-tenancy-domain-structure
Open

Fix org_nodes foreign key constraint#10
lukeryannetnz wants to merge 4 commits intomainfrom
codex/prd1-tenancy-domain-structure

Conversation

@lukeryannetnz
Copy link
Owner

Summary

  • adjust the tenancy-aware org_nodes migration so the composite FK is defined correctly against (tenant_id, id)
  • ensure the constraint uses the same column order/definition as the referenced primary key to avoid errno 150
  • (optional) note the need to rebuild local schema or run php artisan migrate:fresh before rerunning the failing migration

Testing

  • Not run (not requested)

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