2019-10-07 20:56:30 +00:00
|
|
|
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 }
|
|
|
|
]
|
|
|
|
})
|
|
|
|
]
|
2019-12-11 23:01:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
toVersion: 3,
|
|
|
|
steps: [
|
|
|
|
addColumns({
|
|
|
|
table: 'subscriptions',
|
|
|
|
columns: [
|
|
|
|
{ name: 'hide_unread_status', type: 'boolean', isOptional: true }
|
|
|
|
]
|
|
|
|
})
|
|
|
|
]
|
2019-10-07 20:56:30 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|