1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.migration.commands;
17
18 import org.apache.ibatis.migration.operations.DownOperation;
19 import org.apache.ibatis.migration.options.SelectedOptions;
20
21 public final class DownCommand extends BaseCommand {
22 public DownCommand(SelectedOptions options) {
23 super(options);
24 }
25
26 @Override
27 public void execute(String... params) {
28 DownOperation operation = new DownOperation(getStepCountParameter(1, params));
29 operation.operate(getConnectionProvider(), getMigrationLoader(), getDatabaseOperationOption(), printStream,
30 createDownHook());
31 }
32 }