Windows cannot create migration files with `:` character 🪟
Closed this issue · 0 comments
ramiAbdou commented
Description
When a Windows OS user clones the GitHub repository, they are running into an issue in which Windows will fail creating the migration files since they have colon characters (:
) in it.
error: invalid path 'packages/core/src/infrastructure/database/migrations/2024-01-29T17:23:16Z-init.ts'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
Expected Behavior
Migration files should work on all machines, so it should no longer have colons in it.
Additional Context
We'll have to be careful about renaming migration files since production we'll need to update kysely_migrations
in production.