@nozbe/watermelondb
Version:
Build powerful React Native and React web apps that scale from hundreds to tens of thousands of records and remain fast
22 lines (17 loc) • 510 B
TypeScript
// @flow
import type { SchemaMigrations } from '../index'
import type { TableName, ColumnName, SchemaVersion } from '../../index'
import { $Exact } from '../../../types'
export type MigrationSyncChanges = $Exact<{
from: SchemaVersion
tables: TableName<any>[]
columns: $Exact<{
table: TableName<any>
columns: ColumnName[]
}>[]
}> | null
export default function getSyncChanges(
migrations: SchemaMigrations,
fromVersion: SchemaVersion,
toVersion: SchemaVersion,
): MigrationSyncChanges