According to documentation database automatically handles all synced schema migrations and does not allow to specify a migration function. That being said after adding a few models changes give me this error.
PlatformException (PlatformException(error, Migration is required due to the following errors:
Do I have to write sync migration? if yes then, how do I acces migration function for SyncConfiguration