🐛 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:
Naz Gargol 2019-11-11 18:20:38 +07:00 committed by GitHub
parent ae5eb4802c
commit 45253cfe5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

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