Skip to content

Commit 6d55a53

Browse files
committed
Loopback's changemodel has dashes in the table names, so the table names need to be escaped
1 parent 6ada162 commit 6d55a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/migration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function mixinMigration(SQLiteDB) {
3030
}
3131

3232
var sql = null;
33-
sql = 'PRAGMA table_info(' + this.table(model) +')';
33+
sql = 'PRAGMA table_info(' + this.tableEscaped(model) +')';
3434
var params = [];
3535
params.status = true;
3636
this.executeSQL(sql, params, decoratedCallback);

0 commit comments

Comments
 (0)