mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed error rolling back the "remove empty strings" migration
no issue - rollbacks have switched to using transactions but the migration code was copied from an old migration coded before that switch - `down()` is no longer called with an object that contains a `connection` key, it has `transacting` instead
This commit is contained in:
parent
6f9026af6b
commit
fb1b207db9
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ module.exports.up = ({transacting}) => {
|
|||
);
|
||||
};
|
||||
|
||||
module.exports.down = ({connection}) => {
|
||||
const replaceNullWithEmptyString = createReplace(connection, null, '');
|
||||
module.exports.down = ({transacting}) => {
|
||||
const replaceNullWithEmptyString = createReplace(transacting, null, '');
|
||||
|
||||
return Promise.all(
|
||||
tablesToUpdate.map(({tableName, columns}) => Promise.all(
|
||||
|
|
Loading…
Add table
Reference in a new issue