mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 18:42:34 +01:00
Functions like `JSON_ARRAY` and `JSON_OBJECT` have been introduced in PostgreSQL 16 [1]. Older PostgreSQL versions were failing to run the migrations due to the usage of these functions. This change uses `jsonb_build_array` and `jsonb_build_object` functions in PostgreSQL, which have been available since PostgreSQL 9.5 [2]. [1]: https://www.postgresql.org/docs/release/16.0/ [2]: https://www.postgresql.org/docs/release/9.5.0/#AEN132010