Skip to content

How to skip failed lines in migration file #240

Open
@chiruyarabolu

Description

@chiruyarabolu

Hello Team,

I have a script which has multiple lines of db execution lines in which if any of the lines are failed while executing it is not picking up the next lines. Any way to skip the failed lines and execute the next lines?

Ex : INSERT INTO table1 (LOCALE, TRANSLATIONGUID, TRANSLATIONKEY, TRANSLATIONVALUE) VALUES ('en-US', 'translationguid', 'translationkey.', 'Value');

INSERT INTO TABLE1 (LOCALE, TRANSLATIONGUID, TRANSLATIONKEY, TRANSLATIONVALUE) VALUES ('en-US', 'translationguid', 'translationkey', 'value');

The execution of 1st line got failed due to the below error
Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (MYBATIS1.UX_1_ASTRANSLATION) violated

Any way to skip this line of execution and execute the following lines?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions