src/storage/migrations.js
import { schemaMigrations, addColumns } from '@nozbe/watermelondb/Schema/migrations'
export const STORE_PREFIX = 'matrix_'
export default schemaMigrations({
migrations: [
{
// ⚠️ Set this to a number one larger than the current schema version
toVersion: 4,
steps: [
// See "Migrations API" for more details
addColumns({
table: `${STORE_PREFIX}user_settings`,
columns: [
{ name: 'key', type: 'string', isOptional: true },
],
}),
],
},
],
})