Skip to content

feat(migration): add Location entity migration#1321

Merged
yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
lynaDev2:feat/be-38-add-location-migration
Jun 30, 2026
Merged

feat(migration): add Location entity migration#1321
yusuftomilola merged 1 commit into
DistinctCodes:mainfrom
lynaDev2:feat/be-38-add-location-migration

Conversation

@lynaDev2

Copy link
Copy Markdown
Contributor

Summary

This PR adds the database migration required for the initial multi-location backend support.

Changes

  • Added AddLocationEntity TypeORM migration.
  • Creates the locations table.
  • Adds a nullable locationId foreign key to the workspaces table.
  • Seeds a default location for existing workspaces.
  • Updates existing workspaces to reference the default location.
  • Adds the necessary foreign key constraint and index.

Testing

@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

@lynaDev2 is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@lynaDev2 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@yusuftomilola yusuftomilola merged commit 37e681a into DistinctCodes:main Jun 30, 2026
0 of 7 checks passed
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.

[BE-38] Multi-location support: backend data model

2 participants