Skip to content

Conversation

ptbrowne
Copy link
Collaborator

Since there were database migrations to be ran, a new postgres database was created, so that the preview db is not disrupted, see #1538 (comment) for context.

Changes to the database are applied as soon as the server is started, see the start command where there is a db:migrate command
Changes are applied to the database that is linked to the project through environment variables
All vercel deployments (preview / production) are connected to the same database
I think a better model would be to create a new database and connect manually it through environment variables that are scoped to the particular branch you are working on
I've created the database, and did that right now, a new deployment would be necessary for the build on the branch to pick up the new environment varialbes
I am going to run manually the migration to delete the columns, from my local env, and then we should be good

When this PR is merged:

@ptbrowne ptbrowne requested a review from bprusinowski as a code owner May 29, 2024 08:00
Copy link

vercel bot commented May 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2024 8:29am

@ptbrowne ptbrowne marked this pull request as draft May 29, 2024 08:01
in the visualisation-project. Take care of scoping the new environment variables to the preview branch you are working on.
After merging the branch, you can delete the environment variables scoped to the branch.

[visualization-tool-postgres-dev](https://vercel.com/ixt/visualization-tool/stores/postgres/store_dV3rog1asOXO3BfC/data)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added this in the README @bprusinowski

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.

3 participants