programmatically generate liquibase-compare-file for prod-release 2025-01-28 (#153)
Co-authored-by: Timotheus Pokorra <timotheus.pokorra@solidcharity.com> Co-authored-by: Michael Hoennig <michael@hoennig.de> Reviewed-on: https://dev.hostsharing.net/hostsharing/hs.hsadmin.ng/pulls/153 Reviewed-by: Marc Sandlus <marc.sandlus@hostsharing.net>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
--liquibase formatted sql
|
||||
|
||||
-- FIXME: check if we really need the restricted user
|
||||
|
||||
-- ============================================================================
|
||||
-- NUMERIC-HASH-FUNCTIONS
|
||||
|
@ -2,7 +2,7 @@
|
||||
--liquibase formatted sql
|
||||
|
||||
-- ============================================================================
|
||||
--changeset timotheus.pokorra:hs-global-integration-znuny endDelimiter:--//
|
||||
--changeset timotheus.pokorra:hs-global-integration-mlmmj endDelimiter:--//
|
||||
CREATE OR REPLACE VIEW hs_integration.subscription AS
|
||||
SELECT DISTINCT
|
||||
relation.mark as subscription,
|
||||
|
@ -0,0 +1,14 @@
|
||||
|
||||
--liquibase formatted sql
|
||||
|
||||
-- ============================================================================
|
||||
--changeset michael.hoennig:hs-global-liquibase-migration-test 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;
|
||||
|
||||
--//
|
@ -220,3 +220,7 @@ databaseChangeLog:
|
||||
file: db/changelog/9-hs-global/9120-integration-znuny.sql
|
||||
- include:
|
||||
file: db/changelog/9-hs-global/9130-integration-mlmmj.sql
|
||||
|
||||
- include:
|
||||
file: db/changelog/9-hs-global/9999-liquibase-migration-test.sql
|
||||
context: liquibase-migration-test
|
||||
|
Reference in New Issue
Block a user