coresmart / persistencejs

persistence.js is an asynchronous Javascript database mapper library. You can use it in the browser, as well on the server (and you can share data models between them).
http://persistencejs.org
1.73k stars 240 forks source link

fix problem with migrations first setup #8

Closed wilkerlucio closed 13 years ago

wilkerlucio commented 13 years ago

Fixed the call to insert first record on schema_version, in previous version it's not calling the callback (because the callback was sent as second argument, but need to be the third), so the users need to go into page twice in order to migrations run, this commit fix this issue.

zefhemel commented 13 years ago

Once again, thanks! It's good that somebody's keeping the migrations plug-in working :-)