01: package liquibase.parser.visitor;
02:
03: import liquibase.ChangeSet;
04: import liquibase.database.Database;
05: import liquibase.exception.LiquibaseException;
06:
07: public class ChangeLogSyncVisitor implements ChangeSetVisitor {
08:
09: private Database database;
10:
11: public ChangeLogSyncVisitor(Database database) {
12: this .database = database;
13: }
14:
15: public Direction getDirection() {
16: return ChangeSetVisitor.Direction.FORWARD;
17: }
18:
19: public void visit(ChangeSet changeSet) throws LiquibaseException {
20: database.markChangeSetAsRan(changeSet);
21: }
22: }
|