You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
joelverhagen
changed the title
Reflowing packages with package types cause the records to be duplicated
[PackageType]Reflowing packages with package types cause the records to be duplicated
Dec 18, 2019
There are 219 packages on PROD with duplicate package types. This query can be used to find them. After this change ships to PROD gallery we can just reflow these packages:
SELECTMAX(pr.Id) AS Id, MAX(p.NormalizedVersion) AS NormalizedVersion, MAX(p.[Key]) AS PackageKey, pt.[Name], COUNT(*) AS [Count]
FROM PackageTypes pt
INNER JOIN Packages p ONpt.PackageKey= p.[Key]
INNER JOIN PackageRegistrations pr ON pr.[Key] =p.PackageRegistrationKeyGROUP BY p.[Key], pt.[Name]
HAVINGCOUNT(*) >1ORDER BYMAX(pr.Id), MAX(p.NormalizedVersion)
There should only be one.
The text was updated successfully, but these errors were encountered: