Add Indexes to Schema API (#4240)
* Add Indexes to Schema API * error handling * ci errors * postgres support * full text compound indexes * pg clean up * get indexes on startup * test compound index on startup * add default _id to index, full Text index on startup * lint * fix test
This commit is contained in:
committed by
Florent Vilmart
parent
6a1510729a
commit
4bccf96ae7
@@ -274,7 +274,7 @@ describe('SchemaController', () => {
|
||||
fooSixteen: {type: 'String'},
|
||||
fooEighteen: {type: 'String'},
|
||||
fooNineteen: {type: 'String'},
|
||||
}, levelPermissions, config.database))
|
||||
}, levelPermissions, {}, config.database))
|
||||
.then(actualSchema => {
|
||||
const expectedSchema = {
|
||||
className: 'NewClass',
|
||||
@@ -304,6 +304,9 @@ describe('SchemaController', () => {
|
||||
fooNineteen: {type: 'String'},
|
||||
},
|
||||
classLevelPermissions: { ...levelPermissions },
|
||||
indexes: {
|
||||
_id_: { _id: 1 }
|
||||
}
|
||||
};
|
||||
|
||||
expect(dd(actualSchema, expectedSchema)).toEqual(undefined);
|
||||
|
||||
Reference in New Issue
Block a user