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

migrations removeColumn do not work in chrome #53

Open smithimage opened 12 years ago

smithimage commented 12 years ago

It seems like the RegExp used in "Migration.prototype.removeColumn" do not take into account the quotation characters "`" chrome adds around the table name.

The RegExp today looks like this "CREATE TABLE \w+ ((.+))".

It seems like this small change fixes the bug in chrome "CREATE TABLE \\w+ ((.+))".

Best regards!