0
Fork 0
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:
Naz 2021-02-02 21:24:12 +13:00 committed by Daniel Lockyer
parent 23c5ca0795
commit 96f6ca6218
No known key found for this signature in database
GPG key ID: FFBC6FA2A6F6ABC1

View file

@ -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);