-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
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", |
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
The script doesn't work because MikroORM doesn't know about entities defined in the library.