[Gekidou] [Migration] Adds member_count to groups table (#6468)

* Adds member_count to groups table

* Newline
This commit is contained in:
Shaz MJ
2022-07-15 17:01:54 +10:00
committed by GitHub
parent b25f5b10b2
commit de2c240bc7
9 changed files with 26 additions and 3 deletions

View File

@@ -9,11 +9,23 @@ import {schemaMigrations, addColumns} from '@nozbe/watermelondb/Schema/migration
import {MM_TABLES} from '@constants/database';
const {SERVER: {
GROUP,
MY_CHANNEL,
THREAD,
}} = MM_TABLES;
export default schemaMigrations({migrations: [
{
toVersion: 3,
steps: [
addColumns({
table: GROUP,
columns: [
{name: 'member_count', type: 'number'},
],
}),
],
},
{
toVersion: 2,
steps: [