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

Remove mikro-orm:drop script #391

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

johnnyomair
Copy link
Collaborator

The script doesn't work because MikroORM doesn't know about entities defined in the library.

The script doesn't work because MikroORM doesn't know about entities defined in the library.
@@ -18,7 +18,6 @@
"lint:generated-files-not-modified": "npm run api-generator && git diff --exit-code HEAD --",
"lint:tsc": "tsc --project ./tsconfig.lint.json",
"mikro-orm": "mikro-orm",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO we could remove this script as well. I doubt anyone uses it...

@@ -18,7 +18,6 @@
"lint:generated-files-not-modified": "npm run api-generator && git diff --exit-code HEAD --",
"lint:tsc": "tsc --project ./tsconfig.lint.json",
"mikro-orm": "mikro-orm",
"mikro-orm:drop": "mikro-orm schema:drop -r",
"mikro-orm:migration:generate": "mikro-orm migration:create",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, why do we use the term generate, and not create?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess because typeorm uses generate. I'd remove both mikro-orm scripts.

@johnnyomair johnnyomair merged commit 8848618 into main Oct 14, 2024
3 checks passed
@johnnyomair johnnyomair deleted the remove-mikro-orm-drop-script branch October 14, 2024 06:14
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.

5 participants