Skip to content

Conversation

@extradosages
Copy link

@extradosages extradosages commented Feb 28, 2025

The drizzle migrations out property assumes that the migrations folder will be specified as a relative path. Specifying it as an absolute path will fail.

This allows us to specify an absolute path.

Internally it changes the representation of the resources in the migrations folder into absolute paths, and resolves the out path in the drizzle config to an absolute one.

As a side-effect, during the preparation of migrations, paths are now logged as absolute, instead of relative.

The drizzle migrations `out` property assumes that the migrations folder will be specified as a relative path. Specifying it as an absolute path will fail.

This allows us to specify an absolute path.

Internally it changes the representation of the resources in the migrations folder into absolute paths, and resolves the `out` path in the drizzle config to an absolute one.

As a side-effect, during the preparation of migrations, paths are now reported as absolute, instead of relative.
The previous commit was unfinished. This finishes it.
@extradosages extradosages changed the title [drizzle-kit] support absolute paths for drizzle migrations folder feat(drizzle-kit): support absolute paths for drizzle migrations folder Mar 12, 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.

1 participant