Skip to content

Are database migrations expected to be cross-compatible? #865

Answered by jondot
Sillyvan asked this question in Q&A
Discussion options

You must be logged in to vote

I believe for the extent this is possible we would always want compatibility. Which may mean in this case to find a way to abstract enums and not use a native type.

That said, this direction is holding a line of “performance is good enough” but we should be able to let people use native types when they need, since almost always it will be the better option (people will rarely switch database providers after they went to production).

in other words if it is easy we should go for it but remember that mostly it is a development convenience. On most cases people will just use Postgres in production and be OK with native types.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Sillyvan
Comment options

@Sillyvan
Comment options

@jondot
Comment options

@Sillyvan
Comment options

@jondot
Comment options

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