Skip to content

Is it recommended to version control schema_versions.dart ? #3283

Closed Answered by simolus3
realth000 asked this question in Q&A
Discussion options

You must be logged in to vote

There's nothing wrong with excluding or including that file. As you've said, drift re-writes the file every time you invoke the migration command, so there's not a big difference. I include that file (and most generated sources) in my projects so that I can track changes in case anything goes wrong, but it's mostly a personal preference and I don't see any potential issues when excluding the file.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@dickermoshe
Comment options

@simolus3
Comment options

Answer selected by dickermoshe
@dickermoshe
Comment options

@simolus3
Comment options

@realth000
Comment options

@realth000
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants