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

npx mongo-migrate status is not showing any migrations #119

Open
Ishan5hrestha opened this issue Sep 20, 2024 · 3 comments
Open

npx mongo-migrate status is not showing any migrations #119

Ishan5hrestha opened this issue Sep 20, 2024 · 3 comments

Comments

@Ishan5hrestha
Copy link

Ishan5hrestha commented Sep 20, 2024

image

I have created migration scripts inside migration folder and when checking migration status or try to migrate, it keeps showing me that there is no migrations

@designamx
Copy link

try setting globPattern to *_Migration.ts

@mycodeself
Copy link
Owner

Yep try what @designamx says or just use the pattern *.ts. if I'm not wrong the CWD for the glob pattern is relative to the migrationsDir.

@Ishan5hrestha
Copy link
Author

Ishan5hrestha commented Oct 3, 2024

Thanks, my file is now identified. But now I am getting this error even though i have set my package type as module
image

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

No branches or pull requests

3 participants