We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi found several issue:
SQLite3.prototype.autoupdate = function (cb) { var self = this; var wait = 0; Object.keys(this._models).forEach(function (model) { wait += 1; //self.queryAll('SHOW FIELDS FROM ' + this.tableEscaped(model), function (err, fields) { self.queryAll('PRAGMA table_info(' + self.tableEscaped(model) + ')', function (err, fields) { self.alterTable(model, fields, done); }); });
this.tableEscaped // caused error no tableEscaped. 'this' was different context (not adapter instance) //this should change to self self.tableEscaped
SHOW FIELDS FROM <tablename> // is not supported by sqlite use PRAGMA table_info(<tablename>> instead
By the way, the functions return fails:
{ [Error: SQLITE_ERROR: duplicate column name: name] errno: 1, code: SQLITE_ERROR' }
The text was updated successfully, but these errors were encountered:
Thanks, I fixed this bug.
Sorry, something went wrong.
No branches or pull requests
Hi found several issue:
By the way, the functions return fails:
The text was updated successfully, but these errors were encountered: