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

Commit d8257df1 by Matt Broadstone

add ability to determine dialect migration support

This provides the ability to determine whether a given dialect
is supported for migrations. This is mostly another switch that
allows incremental implementation of new dialects.
1 parent 9e9c28f4
......@@ -33,6 +33,7 @@ AbstractDialect.prototype.supports = {
'IGNORE': '',
schemas: false,
transactions: true,
migrations: true,
constraints: {
restrict: true
},
......
......@@ -4,9 +4,12 @@ var chai = require('chai')
, Migrator = require("../lib/migrator")
, DataTypes = require("../lib/data-types")
, dialect = Support.getTestDialect()
, current = Support.sequelize;
chai.config.includeStack = true
if (current.dialect.supports.migrations) {
describe(Support.getTestDialectTeaser("Migrator"), function() {
beforeEach(function() {
this.init = function(options, callback) {
......@@ -590,3 +593,5 @@ describe(Support.getTestDialectTeaser("Migrator"), function() {
} // if dialect postgres
})
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!