forked from prisma/prisma
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cli): ground work for prismaSchemaFolder, implementing `validate…
…`, `format`, and adapting `migrate *` + `db *` cli commands (prisma#24057) * feat(cli): ground work for prismaSchemaFolder, implementing "validate", "format", and preparing "migrate *" and "db *" commands * feat(cli): address PR + chat comments, turn formatSchema, lintSchema, validate as multi-file schema-first "engine command" utilities * tests(internals): fix tests for formatSchema * tests(internals): fixed most tests, add comments * feat(internals): fix getSchemaPathInternal * test(cli): fix incomplete-schemas test suite * test(cli): fix incomplete-schemas test suite, fix almost all getSchema test suite * test(cli): fix other tests * test(cli): update artificial-panic * fix(migrate): restore schema engine interoperability * fix(migrate): use absolute path when starting SchemaEngine, while still treating paths relatively to process.cwd() in psl validation * fix(cli): fix most studio tests, restore previous snapshot in "artificial-panic introspection" * fix(cli): minor updates to Format, DebugInfo * fix(cli): restore failing test in "getSchema" suite * fix(migrate): fix most "migrate" tests * fix(cli): fix all tests but "postgresql-views"??? Used trick for displaying relative paths in "validate" and "getConfig" * fix(migrate): postgresql-views test suite * fix(client): fix integration-tests suite * fix(internals): type issues with getSchema * chore: address review comments * chore(migrate): remove need for more relative paths * chore(internals): restore validate panic snapshot * chore(cli): don't manipulate schemaPath in Studio * test(migrate): fix DbPush snapshot
- Loading branch information
Showing
46 changed files
with
485 additions
and
348 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 0 additions & 2 deletions
2
packages/internals/src/__tests__/engine-commands/__snapshots__/formatSchema.test.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.