Skip to content

Auto-generate a down migration for 'CREATE OR REPLACE FUNCTION' #9751

Open
@alexander-mart

Description

Is your proposal related to a problem?

down.sql AS-IS:

-- Could not auto-generate a down migration.
-- Please write an appropriate down migration for the SQL below:
-- CREATE OR REPLACE FUNCTION attempt_is_answered(attempt_row attempts) RETURNS BOOLEAN AS $$
-- BEGIN
--     RETURN COALESCE(attempt_row.answer_boolean, attempt_row.answer_integer, attempt_row.answer_text, attempt_row.answer_date);
-- END;
-- $$ LANGUAGE plpgsql STABLE;

Describe the solution you'd like

down.sql TO-BE:

DROP FUNCTION IF EXISTS <function_name>;

Describe alternatives you've considered

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions