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

chore: remove use of dbmate as a library #4325

Closed
wants to merge 1 commit into from
Closed

Conversation

alecthomas
Copy link
Collaborator

In reality our uses of it are very straightforward, and it pulls in a bunch of deps we don't want or need.

In reality our uses of it are very straightforward, and it pulls in a bunch of
deps we don't want or need.
@alecthomas alecthomas requested review from a team as code owners February 6, 2025 05:20
@alecthomas alecthomas requested review from wesbillman and removed request for a team February 6, 2025 05:20
This was referenced Feb 6, 2025

// Create schema_migrations table if it doesn't exist.
// This table structure is compatible with dbmate.
_, _ = db.ExecContext(ctx, `CREATE TABLE schema_migrations (version TEXT PRIMARY KEY)`) //nolint:errcheck
Copy link
Collaborator

Choose a reason for hiding this comment

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

If we add a digest column here we could detect when the migration has failed for local dev.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That is a great idea. When we revisit we should do that.

@alecthomas
Copy link
Collaborator Author

I sank way too much time into this already, so I'm giving up for now.

@alecthomas alecthomas closed this Feb 7, 2025
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.

2 participants