feat: add user-defined schema and migrations (#7418)
This commit is contained in:
committed by
GitHub
parent
653d25731f
commit
25d5c30be2
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user