* 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)
| 312 | * @returns {Promise} |
| 313 | */ |
| 314 | async renameTable(before, after, options) { |
| 315 | options = options || {}; |
| 316 | const sql = this.queryGenerator.renameTableQuery(before, after); |
| 317 | return await this.sequelize.query(sql, options); |
| 318 | } |
| 319 | |
| 320 | /** |
| 321 | * Get all tables in current database |