-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
feat(cli): create prisma migrate new
command
#24239
base: main
Are you sure you want to change the base?
Conversation
prisma migrate new
command
CodSpeed Performance ReportMerging #24239 will not alter performanceComparing Summary
|
Note: need to fix errors because another changes was made on migrate. i'll fix it |
debug({ createMigrationResult }) | ||
|
||
process.stdout.write( | ||
`\nThe following migration have been created:\n\n${printMigrationId( |
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.
`\nThe following migration have been created:\n\n${printMigrationId( | |
`\nThe following migration has been created:\n\n${printMigrationId( |
}) | ||
|
||
describe('common', () => { | ||
it('invalid schema', async () => { |
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.
Should this actually happen if you just want to create an empty SQL migration file independent from your Prisma Schema?
spy.mockRestore() | ||
}) | ||
|
||
it('should fail if no schema file', async () => { |
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.
Is the schema file really required?
This PR add
prisma migrate new
command.It will give a another way to create migrations not directly related to schema. Giving a new way on changing something on database and storing that on the code repository.
At this moment i've not found an issue related to this PR