Package org.springframework.jdbc.versioned

Examples of org.springframework.jdbc.versioned.DatabaseChangeSet


    return upgrader;
  }

  // Called for completely fresh DB only
  private void addInstallChangeSet(GenericDatabaseUpgrader upgrader) {
    DatabaseChangeSet changeSet = new DatabaseChangeSet(DatabaseVersion.valueOf("4"));
    changeSet.add(installScript("Member.sql"));
    changeSet.add(installScript("Group.sql"));
    changeSet.add(installScript("Activity.sql"));
    changeSet.add(installScript("ConnectedApp.sql"));
    changeSet.add(installScript("Reset.sql"));
    changeSet.add(installScript("Invite.sql"));   
    changeSet.add(installScript("Venue.sql"));
    changeSet.add(installScript("Event.sql"));
    changeSet.add(SqlDatabaseChange.inResource(new ClassPathResource("JdbcUsersConnectionRepository.sql", JdbcUsersConnectionRepository.class)));
    addInstallChanges(changeSet);
    upgrader.addChangeSet(changeSet);
  }
View Full Code Here


    upgrader.addChangeSet(version3ChangeSet());
    upgrader.addChangeSet(version4ChangeSet());
  }

  private DatabaseChangeSet version2ChangeSet() {   
    DatabaseChangeSet changeSet = new DatabaseChangeSet(DatabaseVersion.valueOf("2"));
    changeSet.add(upgradeScript("v2/AlterServiceProviderTable.sql"));
    return changeSet;
  }
View Full Code Here

    changeSet.add(upgradeScript("v2/AlterServiceProviderTable.sql"));
    return changeSet;
  }
 
  private DatabaseChangeSet version3ChangeSet() {
    DatabaseChangeSet changeSet = new DatabaseChangeSet(DatabaseVersion.valueOf("3"));
    changeSet.add(new UpdateEncryptionMethod(environment, textEncryptor));
    changeSet.add(upgradeScript("v3/CreateUserConnectionTable.sql"));
    changeSet.add(upgradeScript("v3/PopulateUserConnectionTable.sql"));
    changeSet.add(upgradeScript("v3/DropAccountConnectionTables.sql"));
    return changeSet;
  }
View Full Code Here

    changeSet.add(upgradeScript("v3/DropAccountConnectionTables.sql"));
    return changeSet;
  }
 
  private DatabaseChangeSet version4ChangeSet() {
    DatabaseChangeSet changeSet = new DatabaseChangeSet(DatabaseVersion.valueOf("4"));
    changeSet.add(upgradeScript("v4/CreateTimeSlotTable.sql"));
    return changeSet;   
  }
View Full Code Here

TOP

Related Classes of org.springframework.jdbc.versioned.DatabaseChangeSet

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.