(tableNames, skip, options)
| 244 | } |
| 245 | |
| 246 | async _dropAllTables(tableNames, skip, options) { |
| 247 | for (const tableName of tableNames) { |
| 248 | // if tableName is not in the Array of tables names then don't drop it |
| 249 | if (!skip.includes(tableName.tableName || tableName)) { |
| 250 | await this.dropTable(tableName, { ...options, cascade: true } ); |
| 251 | } |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | /** |
| 256 | * Drop all tables from database |
no test coverage detected