Skip to content

script command understands parameters wrong way #3

@step307

Description

@step307

MyBatis migrations version 3.1.0
Given:
Migration "1"
CREATE TABLE t1;
--//@undo
DROP TABLE t1;
Migration "2"
CREATE TABLE t2;
--//@undo
DROP TABLE t2;

run: migrate script 1 2
expected result:
CREATE TABLE t2;
actual result:
CREATE TABLE t1;
CREATE TABLE t2;

run: migrate script 2 2
expected result: error
actual result:
CREATE TABLE t2;

run: migrate script 2 1
expected result:
DROP TABLE t2;
actual result:
DROP TABLE t1;
DROP TABLE t2;

Even if my expectation are wrong - there is no way to build a script to UNDO only 1 migration.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions