Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Davis <[email protected]>
  • Loading branch information
duglin committed Dec 23, 2024
1 parent 192a79c commit 9574714
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions registry/init.sql
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,7 @@ JOIN EffectiveVersions AS v ON (m.ResourceSID=v.ResourceSID
JOIN EffectiveProps AS p ON (p.EntitySID=v.SID)
*/


UNION SELECT
UNION SELECT # Add Resource.isdefault, always 'true'
m.RegistrySID,
m.ResourceSID,
'isdefault$DB_IN',
Expand All @@ -458,7 +457,7 @@ CREATE VIEW AllProps AS
SELECT * FROM EffectiveProps
UNION SELECT * FROM DefaultProps

UNION SELECT # Add in "isdefault", which is calculated
UNION SELECT # Add Version.isdefault, which is calculated
v.RegSID,
v.eSID,
'isdefault$DB_IN',
Expand All @@ -471,7 +470,7 @@ JOIN EffectiveProps AS p ON (
p.PropName='defaultversionid$DB_IN'
AND p.PropValue=v.UID )

UNION SELECT # Add in "RESOURCEid", which is calculated
UNION SELECT # Add in Version.RESOURCEid, which is calculated
v.RegSID,
v.eSID,
CONCAT(mE.Singular, 'id$DB_IN'),
Expand Down

0 comments on commit 9574714

Please sign in to comment.