Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C(5.5) Migrations: Improve explanation #115

Open
ricayanzon opened this issue Jul 14, 2024 · 0 comments
Open

C(5.5) Migrations: Improve explanation #115

ricayanzon opened this issue Jul 14, 2024 · 0 comments

Comments

@ricayanzon
Copy link
Contributor

I think the concept of migrations can be misunderstood by junior devs, i.e. they could wonder why you don't just have a drizzle function to alter the table, similar to how it was done in the previous examples in the database directly using SQL. More than just helping you to update a table, migrations are beneficial because they allow version control (e.g. for rollbacks), consistency/reproducibility between your current state and that of others, and are a form of documentation.
Also, for readers that try out stuff while reading, the table that is created in that example should already exist. I'd be a small change but better imo if a new table name is used.

@ricayanzon ricayanzon changed the title 5.5 Migrations: 5.5 Migrations: Improve explanation Jul 14, 2024
@ricayanzon ricayanzon changed the title 5.5 Migrations: Improve explanation C(5.5) Migrations: Improve explanation Jul 14, 2024
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

No branches or pull requests

1 participant