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

Commit 30c1c32e by Jeff French

Add failing test for enum support in addColumn

1 parent f387f3c7
Showing with 11 additions and 0 deletions
......@@ -248,6 +248,17 @@ describe(Support.getTestDialectTeaser("QueryInterface"), function () {
});
});
});
it('should work with enums (1)', function () {
return this.queryInterface.addColumn('users', 'someEnum', DataTypes.ENUM('value1', 'value2', 'value3'));
});
it('should work with enums (2)', function () {
return this.queryInterface.addColumn('users', 'someOtherEnum', {
type: DataTypes.ENUM,
values: ['value1', 'value2', 'value3']
});
});
});
describe('describeForeignKeys', function() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!