Skip to content

Commit 407a8e6

Browse files
committed
make upgrade migration use transaction
1 parent 5f93cdd commit 407a8e6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pypgstac/pypgstac/migrations/pgstac.0.2.4--0.2.5.sql

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
SET SEARCH_PATH TO pgstac, public;
2-
2+
BEGIN;
33
CREATE OR REPLACE FUNCTION bbox_geom(_bbox jsonb) RETURNS geometry AS $$
44
SELECT CASE jsonb_array_length(_bbox)
55
WHEN 4 THEN
@@ -250,3 +250,5 @@ FROM j
250250
END;
251251
$$ LANGUAGE PLPGSQL SET SEARCH_PATH TO pgstac,public;
252252
INSERT INTO migrations (version) VALUES ('0.2.5');
253+
254+
COMMIT;

0 commit comments

Comments
 (0)