Skip to content

Commit

Permalink
Update integration tests for postgresql & mysql (and disable utf8mb4_…
Browse files Browse the repository at this point in the history
…0900_as_ci collate test)
  • Loading branch information
Jolg42 committed Mar 17, 2020
1 parent 2788e4c commit ed424ba
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 26 deletions.
25 changes: 4 additions & 21 deletions cli/prisma2/__snapshots__/integrate.mysql.test.ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ datasource mysql {
}
model posts {
created_at DateTime
created_at DateTime @default(now())
id Int @default(autoincrement()) @id
title String
}
Expand All @@ -726,7 +726,7 @@ datasource mysql {
}
model posts {
created_at DateTime
created_at DateTime @default(now())
id Int @default(autoincrement()) @id
title String
}
Expand All @@ -744,7 +744,7 @@ datasource mysql {
}
model posts {
created_at DateTime
created_at DateTime @default(now())
id Int @default(autoincrement()) @id
title String
}
Expand All @@ -762,7 +762,7 @@ datasource mysql {
}
model posts {
created_at DateTime
created_at DateTime @default(now())
id Int @default(autoincrement()) @id
title String
}
Expand Down Expand Up @@ -875,23 +875,6 @@ model teams {
}
`

exports['users.findMany({ where: { email: \'MAX@PRISMA.IO\' } })'] = `
generator client {
provider = "prisma-client-js"
output = "***"
}
datasource mysql {
provider = "mysql"
url = "***"
}
model users {
email String @unique
id Int @default(autoincrement()) @id
}
`

exports['exercises.findMany({ where: { distance: 12.213 } })'] = `
generator client {
provider = "prisma-client-js"
Expand Down
8 changes: 4 additions & 4 deletions cli/prisma2/__snapshots__/integrate.postgresql.test.ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ datasource pg {
}
model posts {
created_at DateTime
created_at DateTime @default(now())
id Int @default(autoincrement()) @id
title String
}
Expand All @@ -720,7 +720,7 @@ datasource pg {
}
model posts {
created_at DateTime
created_at DateTime @default(now())
id Int @default(autoincrement()) @id
title String
}
Expand All @@ -738,7 +738,7 @@ datasource pg {
}
model posts {
created_at DateTime
created_at DateTime @default(now())
id Int @default(autoincrement()) @id
title String
}
Expand All @@ -756,7 +756,7 @@ datasource pg {
}
model posts {
created_at DateTime
created_at DateTime @default(now())
id Int @default(autoincrement()) @id
title String
}
Expand Down
3 changes: 2 additions & 1 deletion cli/prisma2/src/__tests__/integrate.mysql.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1583,10 +1583,11 @@ function tests(): Test[] {
],
},
{
todo: true,
up: `
create table users (
id serial primary key not null,
email varchar(50) not null unique COLLATE utf8mb4_0900_as_ci
email varchar(50) not null unique COLLATE utf8mb4_0900_ai_ci
);
insert into users (email) values ('max@prisma.io');
`,
Expand Down

0 comments on commit ed424ba

Please sign in to comment.