* Rename a table * * @param {string} before Current name of table * @param {string} after New name from table * @param {object} [options] Query options * * @returns {Promise}
(before, after, options)
| 290 | * @returns {Promise} |
| 291 | */ |
| 292 | async renameTable(before, after, options) { |
| 293 | options = options || {}; |
| 294 | const sql = this.queryGenerator.renameTableQuery(before, after); |
| 295 | return await this.sequelize.query(sql, options); |
| 296 | } |
| 297 | |
| 298 | /** |
| 299 | * Get all tables in current database |