diff --git a/core/server/data/schema/fixtures/fixtures.json b/core/server/data/schema/fixtures/fixtures.json index 5ac05d6894..15b711fb4d 100644 --- a/core/server/data/schema/fixtures/fixtures.json +++ b/core/server/data/schema/fixtures/fixtures.json @@ -76,6 +76,11 @@ { "name": "Permission", "entries": [ + { + "name": "Backup database", + "action_type": "backupContent", + "object_type": "db" + }, { "name": "Export database", "action_type": "exportContent", diff --git a/core/test/unit/data/schema/fixtures/utils_spec.js b/core/test/unit/data/schema/fixtures/utils_spec.js index 481c6d3102..e9dd40fa8e 100644 --- a/core/test/unit/data/schema/fixtures/utils_spec.js +++ b/core/test/unit/data/schema/fixtures/utils_spec.js @@ -258,10 +258,10 @@ describe('Migration Fixture Utils', function () { it('should fetch a fixture with multiple entries', function () { var foundFixture = fixtureUtils.findModelFixtures('Permission', {object_type: 'db'}); foundFixture.should.be.an.Object(); - foundFixture.entries.should.be.an.Array().with.lengthOf(3); + foundFixture.entries.should.be.an.Array().with.lengthOf(4); foundFixture.entries[0].should.eql({ - name: 'Export database', - action_type: 'exportContent', + name: 'Backup database', + action_type: 'backupContent', object_type: 'db' }); }); diff --git a/core/test/unit/data/schema/integrity_spec.js b/core/test/unit/data/schema/integrity_spec.js index 902924bfa5..5fc7c016b2 100644 --- a/core/test/unit/data/schema/integrity_spec.js +++ b/core/test/unit/data/schema/integrity_spec.js @@ -20,7 +20,7 @@ var should = require('should'), describe('DB version integrity', function () { // Only these variables should need updating const currentSchemaHash = 'fda0398e93a74b2dc435cb4c026679ba'; - const currentFixturesHash = '06771caf35c48fd69cb209a988237c33'; + const currentFixturesHash = 'c61a52e138abb31de3a58c7728ca3d79'; // If this test is failing, then it is likely a change has been made that requires a DB version bump, // and the values above will need updating as confirmation