mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-27 10:42:45 +03:00
Excluded member events tables from site exports
refs https://github.com/TryGhost/Team/issues/525 We expect the member event tables to be large, and they contain what is considered metadata. For this reason we do not want to include them in the export of sites.
This commit is contained in:
parent
6594741c11
commit
f03e1dd863
@ -8,7 +8,18 @@ const logging = require('../../../shared/logging');
|
||||
const errors = require('@tryghost/errors');
|
||||
const security = require('@tryghost/security');
|
||||
const models = require('../../models');
|
||||
const EXCLUDED_TABLES = ['sessions', 'mobiledoc_revisions', 'email_batches', 'email_recipients'];
|
||||
const EXCLUDED_TABLES = [
|
||||
'sessions',
|
||||
'mobiledoc_revisions',
|
||||
'email_batches',
|
||||
'email_recipients',
|
||||
'members_payment_events',
|
||||
'members_login_events',
|
||||
'members_email_change_events',
|
||||
'members_status_events',
|
||||
'members_paid_subscription_events',
|
||||
'members_subscribe_events'
|
||||
];
|
||||
const EXCLUDED_SETTING_KEYS = [
|
||||
'stripe_connect_publishable_key',
|
||||
'stripe_connect_secret_key',
|
||||
|
@ -47,7 +47,7 @@ describe('DB API', function () {
|
||||
const jsonResponse = res.body;
|
||||
should.exist(jsonResponse.db);
|
||||
jsonResponse.db.should.have.length(1);
|
||||
Object.keys(jsonResponse.db[0].data).length.should.eql(34);
|
||||
Object.keys(jsonResponse.db[0].data).length.should.eql(28);
|
||||
});
|
||||
|
||||
it('Can import a JSON database exported from Ghost v2', async function () {
|
||||
|
Loading…
Reference in New Issue
Block a user