- Due to applying a primary key constraint on app_name, instance_id,
active installations with client_instances that have already violated
this unique constraint will fail to migrate.
- This commit drops all but the latest instance of each (app_name,
instance_id) tuple, thus preparing the database for applying the
unique constraint
Co-authored-by: Ivar Conradi Osthus <ivarconr@gmail.com>
Co-authored-by: Fredrik Strand Oseberg <fredrik.no@gmail.com>
* feat: add support for bulk operations on client apps/instance registration
-- stores client registrations for 5 seconds, then runs distinct and inserts them into db
fixes: #732