fix(dao): HSTORE checking like ENUM#1458
fix(dao): HSTORE checking like ENUM#1458janmeier merged 4 commits intosequelize:masterfrom tomchentw:hotfix/hstore_checking_fn
Conversation
This allows user can define HSTORE attribute directly.
|
Looks good :) Yes, a test would be very awesome. A good place to put it would probably be to add it in data-types.test.js. Would you mind adding a test for ENUM as well? A simple test that checks that .sync does not return any errors would be fine. |
|
Not a huge fan of matching against |
|
Thanks for the direction of @janmeier ! But I have to sleep now. Will push some tests later on. @mickhansen, yeah, I think so. To be honest, this is a huge project and you guys are doing really awesome. 👍 |
|
@janmeier I cannot find a correct way to write test against this. Could you give me a hand? I've also fix several bugs in the following commits (those are with tests). |
|
@tomchentw Actually we already have tests for enums I just realized, so that's fine. And your test already uses both ways of declaring a HSTORE column. No more tests needed from my point of view. I think this looks pretty ready to merge - @mickhansen |
|
@janmeier i've had 2 beers so i'll defer to your judgement. |
fix(dao): HSTORE checking like ENUM
|
In that case it's a merge :) |
|
@mickhansen I like your comment! ha |
This allows user can define HSTORE attribute directly.
define like this
instead of
I think I have to write a test case to reflect this?