Skip to content

Commit bbb8f22

Browse files
authored
Merge pull request #573 from USACE/revert-570-User-region
Revert "print flyway table"
2 parents 27f416e + ce09d26 commit bbb8f22

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

sql/common/R__08_functions_user_regions.sql

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,6 @@
44
-- User Regions
55
-------------------------
66

7-
-- DEBUG: Show Flyway migration history in logs
8-
DO $$
9-
DECLARE
10-
migration_history TEXT;
11-
BEGIN
12-
SELECT string_agg(
13-
format('installed_rank: %s | version: %s | description: %s | type: %s | script: %s | checksum: %s | installed_on: %s | execution_time: %s | success: %s',
14-
installed_rank,
15-
COALESCE(version, 'NULL'),
16-
description,
17-
type,
18-
script,
19-
COALESCE(checksum::TEXT, 'NULL'),
20-
installed_on,
21-
execution_time,
22-
success
23-
),
24-
E'\n'
25-
ORDER BY installed_rank DESC
26-
)
27-
INTO migration_history
28-
FROM flyway_schema_history
29-
ORDER BY installed_rank DESC
30-
LIMIT 20;
31-
32-
RAISE EXCEPTION E'FLYWAY MIGRATION HISTORY (last 20):\n%', migration_history;
33-
END $$;
34-
357
-- Function to validate GeoJSON before saving
368
CREATE OR REPLACE FUNCTION validate_user_region_geojson()
379
RETURNS TRIGGER AS $$

0 commit comments

Comments
 (0)