Skip to content

squash alembic migrations#613

Merged
shangyian merged 3 commits intoDataJunction:mainfrom
shangyian:squash-alembic
Jul 8, 2023
Merged

squash alembic migrations#613
shangyian merged 3 commits intoDataJunction:mainfrom
shangyian:squash-alembic

Conversation

@shangyian
Copy link
Copy Markdown
Collaborator

@shangyian shangyian commented Jul 7, 2023

Summary

This PR squashes the database migrations into a single migration and updates dj.demo.db with the changes.

The main reason behind doing this now is that our existing migrations don't work for CockroachDB, which doesn't allow us to alter the primary key of a table in the same transaction as making another change to the table. This is allowed for sqlite, which is why the migrations were working fine with our demo docker compose setup.

Test Plan

Ran locally with the updated dj.demo.db + tests.

Deployment Plan

We should think about how database migration maintenance should work long-term, but that's a separate discussion.

@netlify
Copy link
Copy Markdown

netlify bot commented Jul 7, 2023

Deploy Preview for thriving-cassata-78ae72 canceled.

Name Link
🔨 Latest commit 6a4b515
🔍 Latest deploy log https://app.netlify.com/sites/thriving-cassata-78ae72/deploys/64a9801df6115d0008ebf7cc

@shangyian shangyian force-pushed the squash-alembic branch 3 times, most recently from 2bcf0a7 to e6c3376 Compare July 8, 2023 15:19
@shangyian shangyian added the chore Maintenance et al. label Jul 8, 2023
@shangyian shangyian marked this pull request as ready for review July 8, 2023 15:49
Copy link
Copy Markdown
Contributor

@samredai samredai left a comment

Choose a reason for hiding this comment

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

🚀

@shangyian shangyian merged commit edfb964 into DataJunction:main Jul 8, 2023
youngman-droid pushed a commit to youngman-droid/dj that referenced this pull request Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance et al.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants