Fix the test so that it works across DBs
This commit is contained in:
parent
567ffb8040
commit
1e035c657e
|
@ -3109,8 +3109,15 @@ describe('relations', function () {
|
||||||
|
|
||||||
before(function() {
|
before(function() {
|
||||||
db = getSchema();
|
db = getSchema();
|
||||||
CompanyBoard = db.define('CompanyBoard', {membersNumber: Number, companyId: String});
|
CompanyBoard = db.define('CompanyBoard', {
|
||||||
Boss = db.define('Boss', {boardMembersNumber: Number, companyId: String});
|
membersNumber: Number,
|
||||||
|
companyId: String
|
||||||
|
});
|
||||||
|
Boss = db.define('Boss', {
|
||||||
|
id: {type: String, id: true, generated: false},
|
||||||
|
boardMembersNumber: Number,
|
||||||
|
companyId: String
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
it('relation can be declared with primaryKey', function () {
|
it('relation can be declared with primaryKey', function () {
|
||||||
|
|
Loading…
Reference in New Issue