Merge pull request 'add view for list subscriptions' (#146) from TP-20250113-list-subscription-view into master
Reviewed-on: #146 Reviewed-by: Michael Hoennig <michael.hoennig@hostsharing.net>
This commit is contained in:
commit
ad61f2af59
@ -0,0 +1,14 @@
|
||||
|
||||
--liquibase formatted sql
|
||||
|
||||
-- ============================================================================
|
||||
--changeset timotheus.pokorra:hs-global-integration-znuny endDelimiter:--//
|
||||
CREATE OR REPLACE VIEW hs_integration.subscription AS
|
||||
SELECT DISTINCT
|
||||
relation.mark as subscription,
|
||||
contact.emailaddresses->>'main' as email
|
||||
FROM hs_office.contact AS contact
|
||||
JOIN hs_office.relation AS relation ON relation.contactuuid = contact.uuid AND relation.type = 'SUBSCRIBER'
|
||||
ORDER BY subscription, email;
|
||||
|
||||
--//
|
@ -176,4 +176,6 @@ databaseChangeLog:
|
||||
- include:
|
||||
file: db/changelog/9-hs-global/9110-integration-kimai.sql
|
||||
- include:
|
||||
file: db/changelog/9-hs-global/9120-integration-znuny.sql
|
||||
file: db/changelog/9-hs-global/9120-integration-znuny.sql
|
||||
- include:
|
||||
file: db/changelog/9-hs-global/9130-integration-mlmmj.sql
|
||||
|
Loading…
x
Reference in New Issue
Block a user