Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Insertion of the same record on 2 devices

Featured Replies

Did not know how to phrase it so sorry for the title :)

 

How to manage this example situation :

 

1.User A and B are both offline

2.They both create the same Client

3.They both invoice the same new created Client.

 

How to merge all this on the sync ?

 

I tried to change the primary key to  insert the name at the creation instead of an UUID but when I sync there is a duplicate entry error.

 

Thanks

That's a good question.

 

First thing: Don't change the primary key of any existing records! That is why you're getting the duplicate.

 

Instead, your de-duplication script should change the foreign keys for the invoices so that they point to the client record that you want to keep, and then delete the other client record that you want to get rid of. This is the same process that you would use if you were not using MirrorSync.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.