@klapeks/micro-db-utils 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -137,7 +137,8 @@ var SuperMigrations = /** @class */ (function () {
137
137
  switch (_a.label) {
138
138
  case 0:
139
139
  if (!(sql.toLowerCase().startsWith("alter table")
140
- || sql.toLowerCase().startsWith('exec sp_rename'))) return [3 /*break*/, 2];
140
+ || sql.toLowerCase().startsWith('exec sp_rename')
141
+ || (sqlInstance.rawOptions.type === 'sqlite' && sql.toLowerCase().includes('alter table ')))) return [3 /*break*/, 2];
141
142
  // log error if error
142
143
  return [4 /*yield*/, sqlInstance.runSQL(sql, params).catch(function (err) {
143
144
  logger.error("Error while alter table:", err);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@klapeks/micro-db-utils",
3
3
  "description": "klapeks utils for db and other storages",
4
- "version": "0.0.20",
4
+ "version": "0.0.21",
5
5
  "type": "commonjs",
6
6
  "author": "Klapeks",
7
7
  "license": "ISC",