You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
515 B
JavaScript
22 lines
515 B
JavaScript
'use strict';
|
|
|
|
module.exports = function attemptCompositeUniqueConstraintViolation(knex) {
|
|
return knex("composite_unique_constraint_violation").insert([{
|
|
email: "foo@bar.com",
|
|
username: "foo",
|
|
name: "Joe"
|
|
}, {
|
|
email: "baz@qux.com",
|
|
username: "bar",
|
|
name: "Jane"
|
|
}, {
|
|
email: "foo@bar.com",
|
|
username: "baz",
|
|
name: "Pete"
|
|
}, {
|
|
email: "foo@bar.com",
|
|
username: "foo",
|
|
name: "Jill"
|
|
}]).returning("*");
|
|
};
|