不要怂,就是干,撸起袖子干!

Commit de6bf280 by José Moreira

Remove UNSIGNED (doesn't work with postgres?)

1 parent 53a0f248
Showing with 4 additions and 6 deletions
...@@ -18,8 +18,8 @@ describe(Support.getTestDialectTeaser("Include"), function () { ...@@ -18,8 +18,8 @@ describe(Support.getTestDialectTeaser("Include"), function () {
User = S.define('User', { name: DT.STRING(40) }, { paranoid: true }), User = S.define('User', { name: DT.STRING(40) }, { paranoid: true }),
SomeConnection = S.define('SomeConnection', { SomeConnection = S.define('SomeConnection', {
m: DT.STRING(40), m: DT.STRING(40),
fk: DT.INTEGER.UNSIGNED, fk: DT.INTEGER,
u: DT.INTEGER.UNSIGNED, u: DT.INTEGER,
}, { paranoid: true }), }, { paranoid: true }),
A = S.define('A', { name: DT.STRING(40) }, { paranoid: true }), A = S.define('A', { name: DT.STRING(40) }, { paranoid: true }),
B = S.define('B', { name: DT.STRING(40) }, { paranoid: true }), B = S.define('B', { name: DT.STRING(40) }, { paranoid: true }),
...@@ -39,7 +39,7 @@ describe(Support.getTestDialectTeaser("Include"), function () { ...@@ -39,7 +39,7 @@ describe(Support.getTestDialectTeaser("Include"), function () {
C.hasMany( SomeConnection, { foreignKey: 'fk' }) C.hasMany( SomeConnection, { foreignKey: 'fk' })
// Sync them // Sync them
S.sync({ force: true }).done( function () { S.sync({ force: true }).done( function ( err ) { expect( err ).not.to.be.ok;
// Create an enviroment // Create an enviroment
User.bulkCreate([ User.bulkCreate([
...@@ -75,9 +75,7 @@ describe(Support.getTestDialectTeaser("Include"), function () { ...@@ -75,9 +75,7 @@ describe(Support.getTestDialectTeaser("Include"), function () {
{ u: 2, m: 'B', fk: 2 }, { u: 2, m: 'B', fk: 2 },
{ u: 1, m: 'A', fk: 4 }, // 4 { u: 1, m: 'A', fk: 4 }, // 4
{ u: 4, m: 'A', fk: 2 }, { u: 4, m: 'A', fk: 2 },
], null, { ]).done( function ( err, conns ) { expect( err ).not.to.be.ok; expect( conns ).to.be.length( 24 )
validate: false
}).done( function ( err, conns ) { expect( err ).not.to.be.ok; expect( conns ).to.be.length( 24 )
A.bulkCreate([ A.bulkCreate([
{ name: 'Just' }, { name: 'Just' },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!