Skip to content

Commit

Permalink
[backend] Upgrading to latest spring boot version
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimfacion committed Nov 21, 2024
1 parent 54ec76e commit b514cb0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
import org.springframework.stereotype.Component;

@Component
public class V3_48__Adding_wrapper_functions extends BaseJavaMigration {
public class V3_49__Adding_wrapper_functions extends BaseJavaMigration {

@Override
public void migrate(Context context) throws SQLException {
Statement migrator = context.getConnection().createStatement();
migrator.execute(
"""
CREATE FUNCTION array_to_string_wrapper(a anyelement, b text)
CREATE OR REPLACE FUNCTION array_to_string_wrapper(a anyelement, b text)
RETURNS TEXT AS
$$
SELECT array_to_string(a, b)
$$ LANGUAGE SQL;
""");
migrator.execute(
"""
CREATE FUNCTION array_position_wrapper(a anyelement, b text)
CREATE OR REPLACE FUNCTION array_position_wrapper(a anyelement, b text)
RETURNS INT AS
$$
SELECT array_position(a, b)
Expand Down

0 comments on commit b514cb0

Please sign in to comment.