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

Commit 32474460 by Dr. Evil

Enable btree_gist extension before running tests

1 parent 9612da15
Showing with 10 additions and 2 deletions
...@@ -10,8 +10,17 @@ before(function() { ...@@ -10,8 +10,17 @@ before(function() {
return Support.sequelize.query('CREATE EXTENSION IF NOT EXISTS hstore', null, {raw: true}); return Support.sequelize.query('CREATE EXTENSION IF NOT EXISTS hstore', null, {raw: true});
}); });
before(function() {
var dialect = Support.getTestDialect();
if (dialect !== 'postgres' && dialect !== 'postgres-native') {
return;
}
return Support.sequelize.query('CREATE EXTENSION IF NOT EXISTS btree_gist', null, {raw: true});
});
beforeEach(function() { beforeEach(function() {
return Support.clearDatabase(this.sequelize); return Support.clearDatabase(this.sequelize);
}); });
module.exports = Support; module.exports = Support;
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!