-
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
fix(deps): update engines to v2.26.0-13.a9966aa784861dee7e6b2a90950874cbaf7b4984 #7796
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -3765,7 +3765,7 @@ Object { | |||||||||||||||||||||||||||||||||||||||||||||||
"authorId", | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationName": "PostToUser", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationOnDelete": "NONE", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationOnDelete": "Cascade", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationToFields": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
"id", | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -3878,7 +3878,6 @@ Object { | |||||||||||||||||||||||||||||||||||||||||||||||
"name": "posts", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationFromFields": Array [], | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationName": "PostToUser", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationOnDelete": "NONE", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationToFields": Array [], | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Post", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -15852,7 +15851,7 @@ Object { | |||||||||||||||||||||||||||||||||||||||||||||||
"authorId", | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationName": "PostToUser", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationOnDelete": "NONE", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationOnDelete": "Cascade", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationToFields": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
"id", | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -15965,7 +15964,6 @@ Object { | |||||||||||||||||||||||||||||||||||||||||||||||
"name": "posts", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationFromFields": Array [], | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationName": "PostToUser", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationOnDelete": "NONE", | ||||||||||||||||||||||||||||||||||||||||||||||||
"relationToFields": Array [], | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Post", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -27901,9 +27899,9 @@ Object { | |||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
exports[`getDMMF big schema 1`] = `119480158`; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
exports[`getDMMF chinook introspected schema 1`] = `842601`; | ||||||||||||||||||||||||||||||||||||||||||||||||
exports[`getDMMF chinook introspected schema 1`] = `842348`; | ||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
exports[`getDMMF chinook introspected schema connectOrCreate 1`] = `842601`; | ||||||||||||||||||||||||||||||||||||||||||||||||
exports[`getDMMF chinook introspected schema connectOrCreate 1`] = `842348`; | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+27902
to
+27904
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The size/length of a JSON stringified dmmf... Not super useful like this to know what changed...! prisma/src/packages/sdk/src/__tests__/engineCommands.test.ts Lines 177 to 199 in 2226db9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The length of the stringify dmmf 😕 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can give |
||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||
exports[`getDMMF model with autoincrement should fail if mysql 1`] = ` | ||||||||||||||||||||||||||||||||||||||||||||||||
"Schema parsing | ||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -28420,24 +28418,6 @@ Object { | |||||||||||||||||||||||||||||||||||||||||||||||
"minNumFields": null, | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
"fields": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "scalar", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Int", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "inputObjectTypes", | ||||||||||||||||||||||||||||||||||||||||||||||||
"namespace": "prisma", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "IntFieldUpdateOperationsInput", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"isNullable": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"isRequired": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "id", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -28492,24 +28472,6 @@ Object { | |||||||||||||||||||||||||||||||||||||||||||||||
"minNumFields": null, | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
"fields": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "scalar", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Int", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "inputObjectTypes", | ||||||||||||||||||||||||||||||||||||||||||||||||
"namespace": "prisma", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "IntFieldUpdateOperationsInput", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"isNullable": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"isRequired": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "id", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
-28495
to
-28512
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is causing this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are currently investigating There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These are expected changes as this test does not have a datasource. Meaning that these operations are not supported. cc @dpetrick There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also, the gh ui is a bit screwed up here. Probably due to the large size of the file. Basically, the snapshot indicated is incorrect. It is not |
||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
|
@@ -29308,75 +29270,6 @@ Object { | |||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "StringFieldUpdateOperationsInput", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"constraints": Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"maxNumFields": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
"minNumFields": 1, | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
"fields": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "scalar", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Int", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"isNullable": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"isRequired": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "set", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "scalar", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Int", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"isNullable": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"isRequired": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "increment", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "scalar", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Int", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"isNullable": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"isRequired": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "decrement", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "scalar", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Int", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"isNullable": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"isRequired": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "multiply", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"inputTypes": Array [ | ||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"isList": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"location": "scalar", | ||||||||||||||||||||||||||||||||||||||||||||||||
"type": "Int", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"isNullable": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"isRequired": false, | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "divide", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||
"name": "IntFieldUpdateOperationsInput", | ||||||||||||||||||||||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||||||||||||||||||||||
williamluke4 marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||||||||||||||||||||||
Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"constraints": Object { | ||||||||||||||||||||||||||||||||||||||||||||||||
"maxNumFields": null, | ||||||||||||||||||||||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,8 +83,7 @@ describe('canConnectToDatabase', () => { | |
"code": "P1001", | ||
"message": "Can't reach database server at \`doesnotexist\`:\`5432\` | ||
|
||
Please make sure your database server is running at \`doesnotexist\`:\`5432\`. | ||
", | ||
Please make sure your database server is running at \`doesnotexist\`:\`5432\`.", | ||
} | ||
`) | ||
}) | ||
|
@@ -118,10 +117,7 @@ describe('createDatabase', () => { | |
).rejects.toThrowErrorMatchingInlineSnapshot(` | ||
"P1001: Can't reach database server at \`doesnotexist\`:\`5432\` | ||
|
||
Please make sure your database server is running at \`doesnotexist\`:\`5432\`. | ||
0: sql_migration_connector::flavour::postgres::create_database | ||
with self=PostgresFlavour { url: \\"<REDACTED>\\" } | ||
at migration-engine/connectors/sql-migration-connector/src/flavour/postgres.rs:117" | ||
Please make sure your database server is running at \`doesnotexist\`:\`5432\`." | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These 2 changes are expected ✅ |
||
`) | ||
}) | ||
|
||
|
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.
This should be related to prisma/prisma-engines#1947 (comment)
Not sure about the other changes, could you check @williamluke4 @millsp ?
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.
We need to double check why the
relationOnDelete
changed even when the preview feature is not enabled. This will affect users potentially now.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.
@pimeys gave me context that this is not used in Prisma anywhere.
I just checked the community generators, none use
relationOnDelete
in code as well.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 think only Amplication is using it in code https://github.com/amplication/prisma-schema-dsl/blob/d7126f3ea580090bb287be34258fc13b00db6149/src/builders.ts#L169-L198