mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Fixed drop tables migration utility
refs b5b65b3a60
- The utility was meant to be "irreversible" instead of "transactional"
This commit is contained in:
parent
23c5ca0795
commit
96f6ca6218
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ function addTable(name) {
|
|||
* @param {[string]} names - names of the tables to drop
|
||||
*/
|
||||
function dropTables(names) {
|
||||
return createTransactionalMigration(
|
||||
return createIrreversibleMigration(
|
||||
async function up(connection) {
|
||||
for (const name of names) {
|
||||
const exists = await connection.schema.hasTable(name);
|
||||
|
|
Loading…
Add table
Reference in a new issue