Hello good morning friend Spencer, as you have more experience than I have with RealmDB, following DOC I was unable to make a simple migration, I am used to using sequelize among others.
export const oldAreaSchema = { name: 'Microarea', primaryKey: 'value', properties: { value: {type: 'int?', indexed: true}, label: {type: 'string?', default: ''}, }, };
export const newAreaSchema = { name: 'Microarea', primaryKey: 'value', properties: { value: {type: 'int?', indexed: true}, name: {type: 'string?', default: ''}, label: {type: 'string?', default: ''}, }, };
How would it be to add another field on properties?
Thank you in advance, who can help me
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hello good morning friend Spencer, as you have more experience than I have with RealmDB, following DOC I was unable to make a simple migration, I am used to using sequelize among others.
export const oldAreaSchema = {
name: 'Microarea',
primaryKey: 'value',
properties: {
value: {type: 'int?', indexed: true},
label: {type: 'string?', default: ''},
},
};
export const newAreaSchema = {
name: 'Microarea',
primaryKey: 'value',
properties: {
value: {type: 'int?', indexed: true},
name: {type: 'string?', default: ''},
label: {type: 'string?', default: ''},
},
};
How would it be to add another field on properties?
Thank you in advance, who can help me