|
|
@ -38,6 +38,13 @@ Harness.test({ |
|
|
|
sqlite: "CREATE INDEX \"post_id_userId\" ON \"post\" (\"post\".\"userId\",\"post\".\"id\")" |
|
|
|
}); |
|
|
|
|
|
|
|
Harness.test({ |
|
|
|
query: post.indexes().create().on(post.userId).on(post.id), |
|
|
|
pg: "CREATE INDEX \"post_id_userId\" ON \"post\" (\"post\".\"userId\",\"post\".\"id\")", |
|
|
|
mysql: "CREATE INDEX `post_id_userId` ON `post` (`post`.`userId`,`post`.`id`)", |
|
|
|
sqlite: "CREATE INDEX \"post_id_userId\" ON \"post\" (\"post\".\"userId\",\"post\".\"id\")" |
|
|
|
}); |
|
|
|
|
|
|
|
Harness.test({ |
|
|
|
query: post.indexes().create(), |
|
|
|
pg: { text: 'No columns defined!', throws: true }, |
|
|
|