mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -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
|
* @param {[string]} names - names of the tables to drop
|
||||||
*/
|
*/
|
||||||
function dropTables(names) {
|
function dropTables(names) {
|
||||||
return createTransactionalMigration(
|
return createIrreversibleMigration(
|
||||||
async function up(connection) {
|
async function up(connection) {
|
||||||
for (const name of names) {
|
for (const name of names) {
|
||||||
const exists = await connection.schema.hasTable(name);
|
const exists = await connection.schema.hasTable(name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue