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 }
toVersion: 5,
table: 'settings',
{ name: 'value_as_array', type: 'string', isOptional: true }
toVersion: 6,
{ name: 'sys_mes', type: 'string', isOptional: true }
toVersion: 7,
{ name: 'uids', type: 'string', isOptional: true },
{ name: 'usernames', type: 'string', isOptional: true }
toVersion: 8,
{ name: 'emoji', type: 'string', isOptional: true }
table: 'thread_messages',
table: 'threads',
{ name: 'banner_closed', type: 'boolean', isOptional: true },
{ name: 'visitor', type: 'string', isOptional: true },
{ name: 'department_id', type: 'string', isOptional: true },
{ name: 'served_by', type: 'string', isOptional: true },
{ name: 'livechat_data', type: 'string', isOptional: true },
{ name: 'tags', type: 'string', isOptional: true }
table: 'rooms',
{ name: 'v', type: 'string', isOptional: true },
}
});