import { schemaMigrations, addColumns } from '@nozbe/watermelondb/Schema/migrations';
export default schemaMigrations({
migrations: [
{
toVersion: 2,
steps: [
addColumns({
table: 'subscriptions',
columns: [
{ name: 'jitsi_timeout', type: 'number', isOptional: true }
]
})
},
toVersion: 3,
{ name: 'hide_unread_status', type: 'boolean', isOptional: true }
toVersion: 4,
table: 'messages',
{ name: 'blocks', type: 'string', isOptional: true }
}),
table: 'slash_commands',
{ name: 'app_id', type: 'string', isOptional: true }
}
});