feathers-knex-modeler
Advanced tools
Comparing version 1.4.3 to 1.4.4
{ | ||
"name": "feathers-knex-modeler", | ||
"version": "1.4.3", | ||
"version": "1.4.4", | ||
"description": "This package allows you to easily extend a table while you are developing it without requiring you to drop tables.", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -109,5 +109,5 @@ /* eslint-disable no-console */ | ||
if (retries > 5) { | ||
throw err | ||
throw new Error(`hasColumn errored more than 5 times on table: ${tableName} column: ${columnName}.${err || ''}`) | ||
} else { | ||
self.hasColumn(tableName, columnName, retries) | ||
return self.hasColumn(tableName, columnName, retries) | ||
} | ||
@@ -200,3 +200,3 @@ } | ||
} catch (err) { | ||
self.debug(err) | ||
self.debug(`Alter column failed on column: ${column.name}. ${err || ''}`) | ||
const alreadyExists = (err.message.indexOf('already exists') !== -1) | ||
@@ -280,3 +280,2 @@ if (alreadyExists === false) { | ||
} catch (err) { | ||
console.log(err) | ||
throw new Error('Failed creating columns', err) | ||
@@ -283,0 +282,0 @@ } |
21412
543