pace
pace copied to clipboard
[PACE-76] Change Data Policy primary key
A Data Policy currently is unique based on the id and the platform_id (and version), but this is only enforced in the database.
To ensure consistency across the API and database, @bvdeenen and @trietsch propose the following change:
- Remove
platform_idfrom the database migration in the data policy primary key - A Data Policy will be unique on the
idand theversion - If the
versionis omitted, thelatestversion is assumed - In RPCs,
idandversionshould be included - A Data Policy reference message (including
idandversion) or a URN should be introduced to easily refer to a single unique Data Policy.
From SyncLinear.com | PACE-76