feat: add user-defined schema and migrations (#7418)

This commit is contained in:
Samuel Denis-D'Ortun
2021-11-01 09:28:49 -04:00
committed by GitHub
parent 653d25731f
commit 25d5c30be2
16 changed files with 1365 additions and 36 deletions

View File

@@ -759,7 +759,7 @@ describe('schemas', () => {
});
});
it('refuses to put to existing fields, even if it would not be a change', done => {
it('refuses to put to existing fields with different type, even if it would not be a change', done => {
const obj = hasAllPODobject();
obj.save().then(() => {
request({
@@ -769,7 +769,7 @@ describe('schemas', () => {
json: true,
body: {
fields: {
aString: { type: 'String' },
aString: { type: 'Number' },
},
},
}).then(fail, response => {