@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')
|
|
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);
|