mirror of https://github.com/TryGhost/Ghost.git
🐛 Fixed 3.0 SQLite subscribers migration (#11383)
closes #11349 - The main reason for failure was SQLite's 999 variable limit - More details here https://github.com/TryGhost/Ghost/pull/11270
This commit is contained in:
parent
ae5eb4802c
commit
45253cfe5f
|
@ -37,7 +37,10 @@ module.exports.up = (options) => {
|
|||
|
||||
return member;
|
||||
});
|
||||
return localOptions.transacting('members').insert(members);
|
||||
|
||||
return Promise.map(members, (member) => {
|
||||
return localOptions.transacting('members').insert(member);
|
||||
});
|
||||
} else {
|
||||
common.logging.info('Skipping populating members table: found 0 subscribers');
|
||||
return Promise.resolve();
|
||||
|
|
Loading…
Reference in New Issue